Skip to content

Commit 3bb8a29

Browse files
committed
ci: serialize main pushes with shared concurrency group
Prevents race between build_toc and update-tokens workflows that both push to main on merge; with a shared group the second run waits and checks out fresh main, avoiding the commit/push conflict. https://claude.ai/code/session_01Mm5cao4DWuqXogHPaccCTy
1 parent 8ca6357 commit 3bb8a29

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/build-toc.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ on:
1616
branches:
1717
- main
1818

19+
concurrency:
20+
group: main-push
21+
cancel-in-progress: false
22+
1923
jobs:
2024
build_toc:
2125
# Only run on PR merge or direct push to main

.github/workflows/update-token-count.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,10 @@ on:
1212
permissions:
1313
contents: write
1414

15+
concurrency:
16+
group: main-push
17+
cancel-in-progress: false
18+
1519
jobs:
1620
update-tokens:
1721
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)