Skip to content

fix: delete stale release branch before push to prevent non-fast-forward rejection#13

Merged
TMHSDigital merged 1 commit into
mainfrom
fix/release-stale-branch
May 24, 2026
Merged

fix: delete stale release branch before push to prevent non-fast-forward rejection#13
TMHSDigital merged 1 commit into
mainfrom
fix/release-stale-branch

Conversation

@TMHSDigital
Copy link
Copy Markdown
Owner

Root cause of the second Release failure: chore/release-v0.2.0 existed on the remote from a previous failed run. The push was rejected as non-fast-forward.

Fix: add git push origin ":" 2>/dev/null || true before the push to delete any stale remote branch of the same name. The 2>/dev/null suppresses the harmless 'branch not found' message when no stale branch exists.

…ard rejection

Signed-off-by: fOuttaMyPaint <TMhospitalitystrategies@gmail.com>
@github-actions github-actions Bot added the ci label May 24, 2026
@TMHSDigital TMHSDigital merged commit 33b73e7 into main May 24, 2026
7 checks passed
@TMHSDigital TMHSDigital deleted the fix/release-stale-branch branch May 24, 2026 21:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant