Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork1
Replace text content and submit content
License
NotificationsYou must be signed in to change notification settings
jaywcjlove/github-action-modify-file-content
Use this GitHub action with your project
Add this Action to an existing workflow or create a new oneFolders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Replace text content and submit content
Here is the example: update time 2025-05-12 17:15:59
Here is the different delimiter example: differentGAMFC_TABEL
&GAMFC_TABEL-END
(test)
Name | Required | Default | Description |
---|---|---|---|
token | ✅ | ${{ github.token }} | GitHub Token used to authenticate API requests.Why? |
body | ✅ | — | The content to insert between delimiters in the target file. |
trim_whitespace | ❌ | true | Trim leading and trailing whitespace inbody . |
path | ✅ | — | File path to be modified. |
branch | ❌ | ${{ github.ref_name }} | Branch to commit changes to. |
ref | ❌ | Default branch (usuallymaster ) | The target commit, branch, or tag. |
overwrite | ❌ | false | Whether to overwrite the entire file. |
sync_local_file | ❌ | true | Whether to sync the file from the local content. |
message | ❌ | doc: update <file path>. | Commit message. |
committer_name | ❌ | github-actions[bot] | Name used for the Git commit author. |
committer_email | ❌ | github-actions[bot]@users.noreply.github.com | Email used for the Git commit author. |
openDelimiter | ❌ | <!--GAMFC-->2025-05-12 17:15:59<!--GAMFC-END--> | End delimiter for content replacement. |
content
text file content
-name:Modify README.mduses:jaywcjlove/github-action-modify-file-content@mainwith:path:README.md
README.md
file content
update time<!--GAMFC-->2025-05-12 17:15:59<!--GAMFC-END-->
Replace the content between<!--GAMFC-->2025-05-12 17:15:59<!--GAMFC-END-->
.
-name:Modify README.mduses:jaywcjlove/github-action-modify-file-content@mainwith:path:README.mdbody:"{{date:YYYY-MM-DD HH:mm:ss}}"
-name:Modify README.mduses:jaywcjlove/github-action-modify-file-content@mainwith:path:README.mdbody:"overwrite file content {{date:YYYY-MM-DD HH:mm:ss}}",overwrite:'true'
-name:Modify test test/overwrite.file.mduses:jaywcjlove/github-action-modify-file-content@mainwith:branch:testpath:test/overwrite.file.mdbody:"{{date:YYYY-MM-DD HH:mm:ss}}"overwrite:'true'
- Github Release Changelog Generator A GitHub Action that compares the commit differences between two branches
- Create Tags From Auto create tags from commit or package.json.
- Github Action Contributors Github action generates dynamic image URL for contributor list to display it!
- Generated Badges Create a badge using GitHub Actions and GitHub Workflow CPU time (no 3rd parties servers)
- Create Coverage Badges Create coverage badges from coverage reports. (no 3rd parties servers)
- Github Action package Read and modify the contents of
package.json
. - Github Action EJS A github action to render a ejs template using github context.
- Github Action Read File ContentRead file contents. You can also get the file content in the branch.
As always, thanks to our amazing contributors!
Licensed under the MIT License.
About
Replace text content and submit content
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors3
Uh oh!
There was an error while loading.Please reload this page.