avanderw/Ensure Branch is Up-to-Date

Check if a branch is up-to-date with (or ahead of) a target branch

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Maintainedlast commit Jun 4, 2025
License
None

Pinned Snippet

workflow.ymlSHA-pinned
uses: avanderw/ensure-branch-up-to-date-action@cedcc932ef0ddf0b63bafbf1e1e1bb48df2bfaf7 # 2025.06.04.14.16-cedcc93

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

namedescriptionrequireddefault
current-branchBranch to check (defaults to current branch if not specified)no""
target-branchTarget branch to compare against (e.g., main, master)yes
fail-if-behindWhether to fail the workflow if branch is behind targetnotrue
namedescription
is-up-to-dateWhether the current branch is up-to-date with the target (true/false)
reasonThe reason for the result (e.g., branches_identical, behind_target)
commits-behindNumber of commits the current branch is behind the target
commits-aheadNumber of commits the current branch is ahead of the target