actions-go/Push changes
Optionnally creates a new commit and pushes changes
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 20, 2026
- Maintenance Recency
- Stalelast commit Feb 9, 2022
- License
- MIT
- Runtime
- Deprecated runtime
Pinned Snippet
uses: actions-go/push@7ad7ce209f2a038e7bca929b7a4c92026363f856 # v1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| force | Override the existing remote branch if it already exist | — | false |
| author-email | The email that will appear in commits when changes needs to be committed | — | actions-go@users.noreply.github.com |
| author-name | The name that will appear in commits when changes needs to be committed | — | ActionsGo Bot |
| create-commit | Instructs to create a commit with changed files | — | true |
| commit-files | A coma separated list of files to add to commit in addition to already staged ones. If not provided, all tracked files are committed. | — | — |
| commit-message | The commit message used when changes needs to be committed | yes | — |
| ref | The name of the local reference to push. | — | ${{ github.ref }} |
| remote | The name of the remote on which to push the changes. Defaults to the tracked remote | — | origin |
| remote-ref | The name of the remote reference to pushto. Defaults to the tracked remote branch. | — | ${{ github.ref }} |
| fail-if-empty | Fail the action in case there is nothing to do. | — | false |
| token | Auth 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 }} |
Outputs
| name | description |
|---|---|
| empty | TRUE when the action did not perform anything |