Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

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 one
View on Marketplace
 
 

Repository files navigation

Replace text content and submit content

Here is the example: update time 2022-11-29 07:18:44

Here is the different delimiter example: differentGAMFC_TABEL &GAMFC_TABEL-END (test)

Inputs

  • token YourGITHUB_TOKEN. This is required. Why do we needtoken? Read more here:About the GITHUB_TOKEN secret. Default:${{ github.token }}
  • body what needs to be replaced
  • path file to be replaced
  • branch The person that committed the file. Default: the authenticated user
  • ref The name of the commit/branch/tag. Default: the repository’s default branch (usuallymaster)
  • overwrite Overwrite the entire file content, by defaultfalse
  • sync_local_file Sync local file content, by defaulttrue
  • message The commit message. by defaultdoc: update <file path>.
  • committer_name The name of the author or committer of the commit. by defaultgithub-actions[bot]
  • committer_email The email of the author or committer of the commit. by defaultgithub-actions[bot]@users.noreply.github.com
  • openDelimiter Character to use for opening delimiter, by default "<!--GAMFC-->"
  • closeDelimiter Character to use for closing delimiter, by default "<!--GAMFC-END-->"

Outputs

  • content text file content

Example Usage

-name:Modify README.mduses:jaywcjlove/github-action-modify-file-content@mainwith:path:README.md

README.md file content

update time<!--GAMFC-->2022-11-29 07:18:44<!--GAMFC-END-->

Replace the content between<!--GAMFC-->2022-11-29 07:18:44<!--GAMFC-END-->.

format date

-name:Modify README.mduses:jaywcjlove/github-action-modify-file-content@mainwith:path:README.mdbody:"{{date:YYYY-MM-DD HH:mm:ss}}"

overwrite file

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

See Also

License

Licensed under the MIT License.

About

Replace text content and submit content

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors3

  •  
  •  
  •  

[8]ページ先頭

©2009-2025 Movatter.jp