Skip to content

Github Actions to make changes to a file #26842

Discussion options

You must be logged in to vote

@allisonsampaio ,

To chang the files in the repository, generally you need to setup the steps like as below:

  1. Use the checkout action to check out the repository to the runner machine.

  2. Execute the shell scripts or actions to modify the files.

    • The shell scripts just is like as what you can run in the local machines.
    • Abuout the actions, you can go to the GitHub Marketplace to look for the related actions that can modify the specific types of files that you want to change. If you do not find any available action, you can reference to “Creating actions” to create yourself customized action.
  3. Run the ralated git commands to commit and push the changes to the repository on GitHub.

Replies: 4 comments

Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants