Skip to content

Commit b48b533

Browse files
sbryngelsonclaude
andcommitted
Skip benchmark workflow for bot review events
Bot reviews (AI code reviewers) trigger pull_request_review events that start a new Benchmark workflow run. The concurrency group then cancels the real benchmark run from the pull_request event, causing all benchmark jobs to be cancelled on every PR with AI reviewers enabled. Fix: skip the workflow early when the review author is a Bot account. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3781b98 commit b48b533

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/bench.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ concurrency:
1313
jobs:
1414
file-changes:
1515
name: Detect File Changes
16+
if: >
17+
github.event_name != 'pull_request_review' ||
18+
github.event.review.user.type != 'Bot'
1619
runs-on: 'ubuntu-latest'
1720
outputs:
1821
checkall: ${{ steps.changes.outputs.checkall }}

0 commit comments

Comments
 (0)