An open API service indexing awesome lists of open source software.

https://github.com/devapro/replace-string-action

GitHub action. Replace string in file
https://github.com/devapro/replace-string-action

Last synced: 10 days ago
JSON representation

GitHub action. Replace string in file

Awesome Lists containing this project

README

          

# GitHub action. Replace string in file

This action find an replace specific string in given file.

## Inputs

## `file-path`

**Required** File path where changes should be done.

## `search`

**Required** String that should be replaced.

## `replace`

**Required** New string.

## `replace-all`

**Optional** Replace whole string with new value. [true/false] (Default: false)

## Example usage

```
uses: devapro/replace-string-action@v0.0.8
with:
file-path: "project/build.gradle.kts"
search: "buildVersionCode = 111"
replace: "buildVersionCode = 222"
```