Is there a way to push changes with a GitHub action?

I found the stefanzweifel/git-auto-commit-action to be the best solution. It's really as easy as:

- uses: stefanzweifel/git-auto-commit-action@v4

One could, of course, tune the parameters, like commit message, file globs and many others.


Update: Please see the following question/answer for full details about how to push changes back to the remote. Push to origin from GitHub action

An alternative option is create-pull-request action. It will automatically commit changes to a new branch and raise a pull request for you to review the changes. I wrote a detailed explanation about it as an answer to another question here: https://stackoverflow.com/a/58004257/11934042