Skip to content

Commit b620052

Browse files
mcp-tool-shopclaude
andcommitted
ci: collapse the push/pull_request double-fire in the concurrency group
`github.ref` cannot collapse a push and its pull_request run: the same commit is refs/heads/<branch> on push and refs/pull/N/merge on the PR, so both go to completion on identical bytes. `github.head_ref || github.ref` gives both events one group key on a PR branch; head_ref is empty elsewhere, so pushes to the default branch keep grouping by ref. Marketing-wing half of the org-wide CI-minute sweep. Minutes here bill to the personal account by design, so this is the one place the saving is not notional. Per dogfood-swarm SKILL item 9. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 7ef0c27 commit b620052

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ on:
2828
workflow_dispatch:
2929

3030
concurrency:
31-
group: ${{ github.workflow }}-${{ github.ref }}
31+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
3232
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
3333

3434
permissions:

0 commit comments

Comments
 (0)