devops-infra/GitHub Action for committing changes to repository
Powerful GitHub Action for automatically committing and pushing changes back to your repository
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 6, 2026
- License
- MIT
Pinned Snippet
uses: devops-infra/action-commit-push@f066ea8e19660de57d3d3a4a0b9d294ea2612e20 # v1.5.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| github_token | Personal Access Token for GitHub for pushing the code | yes | "" |
| add_timestamp | Whether to add timestamp to a new branch name | no | false |
| amend | Whether to make amendment to the previous commit (--amend). Can be combined with commit_message to change the message. | no | false |
| commit_prefix | Prefix added to commit message | no | "" |
| commit_message | Commit message to set | no | "" |
| user_name | Git user.name to use for created commits. Defaults to GITHUB_ACTOR when empty. | no | "" |
| user_email | Git user.email to use for created commits. Defaults to GITHUB_ACTOR@users.noreply.<organization_domain> when empty. | no | "" |
| signing_mode | Commit signing mode. Supported values are gpg and ssh. | no | "" |
| signing_key | Signing key material. For gpg use an ASCII-armored private key export; for ssh use a private key in OpenSSH or PEM format. | no | "" |
| signing_passphrase | Optional passphrase for the signing key. | no | "" |
| force | Whether to use force push (--force). Use only when you need to overwrite remote changes. Potentially dangerous. | no | false |
| force_with_lease | Whether to use force push with lease (--force-with-lease). Safer than force as it checks for remote changes. | no | false |
| base_branch | Base branch name used for branch sync/reset (defaults to auto-detected main/master). | no | "" |
| reset_target_branch | Whether to hard-reset target branch to origin/base_branch before committing. | no | false |
| allow_empty_commit | Whether to allow creating an empty commit when there are no file changes. | no | false |
| fail_on_rebase_conflict | Whether to fail when branch rebase onto base branch conflicts. | no | true |
| no_edit | Whether to not edit commit message when using amend | no | false |
| organization_domain | Name of GitHub Enterprise organization | no | github.com |
| target_branch | Name of a new branch to push the code into (skipped when no changes and amend is false) | no | "" |
| repository_path | Relative path under GITHUB_WORKSPACE to the checked-out repository (use when actions/checkout path is set) | no | . |
Outputs
| name | description |
|---|---|
| files_changed | List of changed files |
| branch_name | Name of the branch code was pushed into |