Replace text content and submit content
Here is the example: update time 2022-10-27 01:52:09
token Your GITHUB_TOKEN. This is required. Why do we need token? Read more here: About the GITHUB_TOKEN secret. Default: ${{ github.token }}body what needs to be replacedpath file to be replacedoverwrite overwrite file, by default trueopenDelimiter Character to use for opening delimiter, by default <!--GAMFC-->closeDelimiter Character to use for closing delimiter, by default <!--GAMFC-END-->content text file content- name: Modify README.md
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: README.md
README.md file content
update time <!--GAMFC-->2022-10-27 01:52:09<!--GAMFC-END-->
Replace the content between <!--GAMFC--> and
<!--GAMFC-END-->.
- name: Modify README.md
uses: jaywcjlove/github-action-modify-file-content@main
with:
path: README.md
body: "{{date:YYYY-MM-DD HH:mm:ss}}"
package.json.Licensed under the MIT License.