Skip to content

Commit 6916331

Browse files
sbryngelsonclaude
andcommitted
Use unique concurrency group for bot review runs
Job-level `if` doesn't prevent the workflow run from being created, so the concurrency group still cancels in-progress runs. Fix by giving bot review runs a unique concurrency group (appending run_id) so they can't cancel real benchmark runs. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent b48b533 commit 6916331

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/bench.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
workflow_dispatch:
88

99
concurrency:
10-
group: ${{ github.workflow }}-${{ github.ref }}
10+
group: ${{ github.workflow }}-${{ github.ref }}${{ github.event_name == 'pull_request_review' && github.event.review.user.type == 'Bot' && format('-bot-{0}', github.run_id) || '' }}
1111
cancel-in-progress: true
1212

1313
jobs:

0 commit comments

Comments
 (0)