Replace text content and submit content
Here is the example: update time 2022-10-27 02:56:39
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 truemessage The commit message. by default doc: update <file path>.committer_name The name of the author or committer of the commit. by default github-actions[bot]committer_email The email of the author or committer of the commit. by default github-actions[bot]@users.noreply.github.comopenDelimiter 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 02:56:39<!--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.