Modify repo file with Actions

I want to create an Action that changes a file in my repository. Files written to the local file system inside the Action will dissapear when the workflow is done. What is the best approach to modify files? Can Actions create commits?

1 Like

Hi @estensen,

With your GITHUB_TOKEN you can make changes as you describe. Here are a couple Actions from the community that might be a good place to start:

https://github.com/cds-snc/github-actions/tree/master/auto-commit

https://github.com/ad-m/github-push-action

-Ilya

3 Likes