Skip to content

Commit

Permalink
Only upload benchmark results if not on a fork (#91)
Browse files Browse the repository at this point in the history
* Only upload benchmark results if not on a fork

* Give benchmark workflow perms to comment on PRs too

* Update Benchmark.yml

---------

Co-authored-by: Hong Ge <[email protected]>
  • Loading branch information
penelopeysm and yebai authored Sep 10, 2024
1 parent b8b1d76 commit 9e4c1cc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/Benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ concurrency:

permissions:
contents: write
pull-requests: write

jobs:
benchmark:
Expand Down Expand Up @@ -52,4 +53,4 @@ jobs:
alert-threshold: "200%"
fail-on-alert: true
benchmark-data-dir-path: benchmarks
auto-push: true
auto-push: ${{ !github.event.pull_request.head.repo.fork }} # Disable push for PRs from forks

0 comments on commit 9e4c1cc

Please sign in to comment.