@devries-cameron20 / t3code Mirror · read-only / commits / ea5f85e7cc
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 21, 23:30 UTC

fix(ci): release version bump push retries when main moves (#34326)

Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>

Theo Browne committed Nov 11, 2026 at 03:52 UTC ea5f85e7cc74aa7d5467afa2e7b05706db9d2332
1 file changed +12 -1
.github/workflows/release.yml
+12 -1
@@ -1482,7 +1482,18 @@ jobs:
1482
1483 git add apps/server/package.json apps/desktop/package.json apps/web/package.json packages/contracts/package.json pnpm-lock.yaml
1484 git commit --no-verify -m "chore(release): prepare $RELEASE_TAG"
1485 - git push origin HEAD:main
1485 +
1486 + # main moves while this job runs, so a rejected push rebases and retries.
1487 + for attempt in 1 2 3 4 5; do
1488 + if git push origin HEAD:main; then
1489 + exit 0
1490 + fi
1491 + echo "Push rejected (attempt $attempt). Rebasing onto latest main."
1492 + git pull --rebase origin main
1493 + done
1494 +
1495 + echo "Could not push the version bump after 5 attempts." >&2
1496 + exit 1
1497
1498 announce_discord:
1499 name: Announce release on Discord