From c6328a229fc0ab8edef378ff812d76b0105158c4 Mon Sep 17 00:00:00 2001 From: Lex Christopherson Date: Wed, 25 Mar 2026 10:47:35 -0600 Subject: [PATCH] fix(ci): prevent pipeline race condition on release push Serialize pipeline runs with a fixed concurrency group (pipeline-main) instead of per-SHA groups that allowed parallel races. Pull --rebase before pushing the release commit so intervening main commits don't cause non-fast-forward failures. Co-Authored-By: Claude Opus 4.6 (1M context) --- .github/workflows/pipeline.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index f2925fd11..75ad95508 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -7,7 +7,7 @@ on: branches: [main] concurrency: - group: pipeline-${{ github.sha }} + group: pipeline-main cancel-in-progress: false permissions: @@ -187,6 +187,7 @@ jobs: git add package.json package-lock.json CHANGELOG.md native/npm/*/package.json pkg/package.json packages/pi-coding-agent/package.json git commit -m "release: v${RELEASE_VERSION}" git tag "v${RELEASE_VERSION}" + git pull --rebase origin main git push origin main git push origin "v${RELEASE_VERSION}"