devops-infra/GitHub Action for committing changes to repository

Powerful GitHub Action for automatically committing and pushing changes back to your repository

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Jul 6, 2026
License
MIT

Pinned Snippet

workflow.ymlSHA-pinned
uses: devops-infra/action-commit-push@f066ea8e19660de57d3d3a4a0b9d294ea2612e20 # v1.5.0

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

namedescriptionrequireddefault
github_tokenPersonal Access Token for GitHub for pushing the codeyes""
add_timestampWhether to add timestamp to a new branch namenofalse
amendWhether to make amendment to the previous commit (--amend). Can be combined with commit_message to change the message.nofalse
commit_prefixPrefix added to commit messageno""
commit_messageCommit message to setno""
user_nameGit user.name to use for created commits. Defaults to GITHUB_ACTOR when empty.no""
user_emailGit user.email to use for created commits. Defaults to GITHUB_ACTOR@users.noreply.<organization_domain> when empty.no""
signing_modeCommit signing mode. Supported values are gpg and ssh.no""
signing_keySigning key material. For gpg use an ASCII-armored private key export; for ssh use a private key in OpenSSH or PEM format.no""
signing_passphraseOptional passphrase for the signing key.no""
forceWhether to use force push (--force). Use only when you need to overwrite remote changes. Potentially dangerous.nofalse
force_with_leaseWhether to use force push with lease (--force-with-lease). Safer than force as it checks for remote changes.nofalse
base_branchBase branch name used for branch sync/reset (defaults to auto-detected main/master).no""
reset_target_branchWhether to hard-reset target branch to origin/base_branch before committing.nofalse
allow_empty_commitWhether to allow creating an empty commit when there are no file changes.nofalse
fail_on_rebase_conflictWhether to fail when branch rebase onto base branch conflicts.notrue
no_editWhether to not edit commit message when using amendnofalse
organization_domainName of GitHub Enterprise organizationnogithub.com
target_branchName of a new branch to push the code into (skipped when no changes and amend is false)no""
repository_pathRelative path under GITHUB_WORKSPACE to the checked-out repository (use when actions/checkout path is set)no.
namedescription
files_changedList of changed files
branch_nameName of the branch code was pushed into