From b9b9d46b153ed2192e33e92f3039abc0a73a4a7d Mon Sep 17 00:00:00 2001 From: Alexander Marks Date: Thu, 1 Oct 2020 08:39:03 -0700 Subject: [PATCH] Disable benchmarks on forks (#1341) Unfortunately we can't currently run benchmarks on PRs from forked repos, because the tachometer action reports results by posting a comment, which requires a github token that isn't available. --- .github/workflows/benchmarks.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/benchmarks.yml b/.github/workflows/benchmarks.yml index dd3bfed5c8..2cdcf6dde8 100644 --- a/.github/workflows/benchmarks.yml +++ b/.github/workflows/benchmarks.yml @@ -5,6 +5,12 @@ on: [pull_request] jobs: benchmarks: name: benchmarks + + # We can't currently run benchmarks on PRs from forked repos, because the + # tachometer action reports results by posting a comment, and we can't post + # comments without a github token. + if: github.event.pull_request == null || github.event.pull_request.head.repo.full_name == github.repository + runs-on: ubuntu-latest steps: - uses: actions/checkout@v2