This Github action will overwrite a file with defined content. It is useful during CI process when you need to replace all content in a config file or all content in other files. Content could be stored as a Github Secret.
Example using content from a Github secret to overwrite content in test.txt
uses: Radioh/action-content-overwrite@v1
with:
filePath: "./src/test.txt"
content: ${{ secrets.TEST }}
The scripts and documentation in this project are released under the MIT License