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) <noreply@anthropic.com>
This commit is contained in:
parent
cebdc77ffd
commit
c6328a229f
1 changed files with 2 additions and 1 deletions
3
.github/workflows/pipeline.yml
vendored
3
.github/workflows/pipeline.yml
vendored
|
|
@ -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}"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue