Skip to content

Commit e032eeb

Browse files
committed
fix(ci): handle race condition in quality metrics update
Add git pull --rebase before push to handle concurrent updates from the release process
1 parent 7876aef commit e032eeb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
'agentic-node-ts-starter': patch
3+
---
4+
5+
fix(ci): handle race condition in quality metrics update
6+
7+
Fixed a race condition where the quality metrics update job fails when the release process pushes a version bump commit to main before the metrics update completes. Added `git pull --rebase origin main` before pushing to handle concurrent updates.

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ jobs:
104104
git config --local user.name "${{ github.actor }}"
105105
git add quality-metrics.json
106106
git commit --no-verify -m "chore: update quality metrics [skip ci]"
107+
git pull --rebase origin main
107108
git push
108109
109110
# =============================================================================

0 commit comments

Comments
 (0)