Modify File Content

Replace text content and submit content

Here is the example: update time 2022-10-27 02:56:39

Inputs

Outputs

Example Usage

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

format date

- name: Modify README.md
  uses: jaywcjlove/github-action-modify-file-content@main
  with:
    path: README.md
    body: "{{date:YYYY-MM-DD HH:mm:ss}}"

See Also

License

Licensed under the MIT License.