From 9e4c1ccf9524c056589ac57d1456b4348ea39a5e Mon Sep 17 00:00:00 2001 From: Penelope Yong Date: Tue, 10 Sep 2024 13:56:13 +0100 Subject: [PATCH] Only upload benchmark results if not on a fork (#91) * 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 <3279477+yebai@users.noreply.github.com> --- .github/workflows/Benchmark.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/Benchmark.yml b/.github/workflows/Benchmark.yml index e2522a00..27f4091b 100644 --- a/.github/workflows/Benchmark.yml +++ b/.github/workflows/Benchmark.yml @@ -12,6 +12,7 @@ concurrency: permissions: contents: write + pull-requests: write jobs: benchmark: @@ -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