Skip to content
file-text

GitHub Action

Content Overwrite

v1.0 Latest version

Content Overwrite

file-text

Content Overwrite

Overwrite file with predefined content

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Content Overwrite

uses: Radioh/action-content-overwrite@v1.0

Learn more about this action in Radioh/action-content-overwrite

Choose a version

License Content Overwrite Actions Status

Content overwrite

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.

Usage

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 }}

License

The scripts and documentation in this project are released under the MIT License