actions-go/Push changes

Optionnally creates a new commit and pushes changes

View on GitHub

Trust Signals

Scorecard Score
Scorecard 2–4scored Jul 20, 2026
Maintenance Recency
Stalelast commit Feb 9, 2022
License
MIT
Runtime
Deprecated runtime

Pinned Snippet

workflow.ymlSHA-pinned
uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856 # v1

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
forceOverride the existing remote branch if it already existfalse
author-emailThe email that will appear in commits when changes needs to be committedactions-go@users.noreply.github.com
author-nameThe name that will appear in commits when changes needs to be committedActionsGo Bot
create-commitInstructs to create a commit with changed filestrue
commit-filesA coma separated list of files to add to commit in addition to already staged ones. If not provided, all tracked files are committed.
commit-messageThe commit message used when changes needs to be committedyes
refThe name of the local reference to push.${{ github.ref }}
remoteThe name of the remote on which to push the changes. Defaults to the tracked remoteorigin
remote-refThe name of the remote reference to pushto. Defaults to the tracked remote branch.${{ github.ref }}
fail-if-emptyFail the action in case there is nothing to do.false
tokenAuth token used to fetch the repository. The token is stored in the local git config, which enables your scripts to run authenticated git commands. The post-job step removes the token from the git config. [Learn more about creating and using encrypted secrets](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-and-using-encrypted-secrets) ${{ github.token }}
namedescription
emptyTRUE when the action did not perform anything