Skip to content

Commit d38e6ba

Browse files
mcp-tool-shopclaude
andcommitted
ci: collapse the push/pull_request double-fire in the concurrency group
`group: ${{ github.workflow }}-${{ github.ref }}` cannot collapse a push and its pull_request run, because the same commit is refs/heads/<branch> on push and refs/pull/N/merge on the PR. Both runs go to completion on identical bytes — verified across the org on armature runs 34111791960 (push) and 34111797073 (pull_request): same head_sha, four seconds apart, both running the full matrix. Using `github.head_ref || github.ref` gives both events the same group key on a PR branch, so the push run is superseded and every PR costs one matrix, not two. head_ref is empty outside pull_request, so pushes to main keep grouping by ref. Part of the org-wide CI-minute sweep. Per dogfood-swarm SKILL item 9. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
1 parent 823533e commit d38e6ba

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
@@ -23,7 +23,7 @@ on:
2323
workflow_dispatch:
2424

2525
concurrency:
26-
group: ${{ github.workflow }}-${{ github.ref }}
26+
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
2727
cancel-in-progress: true
2828

2929
jobs:

0 commit comments

Comments
 (0)