Skip to content

Commit 45ce438

Browse files
sshin23claude
andauthored
CI: restrict benchmark compare job to PRs only (#267)
The bench-* jobs are already guarded by `github.event_name == 'pull_request'`, but the downstream `compare` job relied on implicit skip propagation. Add an explicit PR-only guard so benchmarks never run on push to main. Co-authored-by: Claude <noreply@anthropic.com>
1 parent 38e9809 commit 45ce438

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -251,7 +251,7 @@ jobs:
251251

252252
compare:
253253
needs: [bench-nothing, bench-cuda, bench-amdgpu, bench-oneapi]
254-
if: always() && contains(needs.*.result, 'success')
254+
if: always() && github.event_name == 'pull_request' && contains(needs.*.result, 'success')
255255
runs-on: ubuntu-latest
256256
steps:
257257
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)