https://github.com/radioh/action-content-overwrite
Github Action for overwriting content in file.
https://github.com/radioh/action-content-overwrite
action config file github overwrite secret
Last synced: about 2 months ago
JSON representation
Github Action for overwriting content in file.
- Host: GitHub
- URL: https://github.com/radioh/action-content-overwrite
- Owner: Radioh
- License: mit
- Created: 2020-10-17T13:25:59.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2024-10-07T19:05:20.000Z (over 1 year ago)
- Last Synced: 2026-02-10T23:49:47.579Z (3 months ago)
- Topics: action, config, file, github, overwrite, secret
- Language: JavaScript
- Homepage:
- Size: 410 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
 
# Content overwrite
This action overwrites the content of a file with the content provided in the action.
It is useful for updating files with secrets or other content that should not be stored in the repository.
A common use case is to update a file with the content of a Github secret.
# Inputs
- `filePath` - The path to the file that should be updated
- `content` - The content that should be written to the file
# Usage
Example using content from a Github secret to overwrite content in test.txt
```yaml
uses: Radioh/action-content-overwrite@v2.0
with:
filePath: "./src/test.txt"
content: ${{ secrets.TEST }}
```
# License
The scripts and documentation in this project are released under the [MIT License](LICENSE)