block-ci: give each master push its own Block Test concurrency group

A group admits one running and one pending run; a newer push cancels the
pending one even with cancel-in-progress off, so a burst of merges left
some without a post-merge result. Key pushes on the commit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Chris LuandClaude Opus 5.5 committed 2026-12-05 04:07:30 -08:00
1 parent b52fd36f0a
commit eec9517c87
1 file changed
+4 -3
+4 -3
View File
@@ -25,10 +25,11 @@ defaults:
permissions:
contents: read
# One run per PR (or per branch for pushes). A new push to a PR cancels the
# superseded run; runs on main are never cancelled so every merge gets a result.
# One run per PR (or per commit for pushes). A new push to a PR cancels the
# superseded run; a queued master run would be replaced by a newer one in a
# shared group, so each merge gets its own group and its own result.
concurrency:
group: block-test-${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
group: block-test-${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
jobs: