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
- Host: GitHub
- URL: https://github.com/devapro/replace-string-action
- Owner: devapro
- Created: 2024-08-07T16:56:27.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-28T22:27:13.000Z (almost 2 years ago)
- Last Synced: 2025-02-27T05:44:47.795Z (over 1 year ago)
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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"
```