Skip to content

Commit 2e9cb08

Browse files
ignore benchstat on forks
1 parent ae79b52 commit 2e9cb08

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

.github/workflows/bench.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,11 @@ jobs:
2020
benchstat:
2121
name: Performance regression check
2222
runs-on: ubuntu-latest
23+
# Check if the event is not triggered by a fork
24+
# peter-evans/find-comment@v1 does not work on forks.
25+
# see https://github.com/peter-evans/create-pull-request/blob/main/docs/concepts-guidelines.md#restrictions-on-repository-forks for details.
26+
# Ideally we would like to still run the benchmark on forks, but we can't do that with the current setup.
27+
if: github.event.pull_request.head.repo.full_name == github.repository
2328
continue-on-error: true
2429
steps:
2530
- name: Set benchmark repetitions

0 commit comments

Comments
 (0)