Skip to content

Commit

Permalink
Disable benchmarks on forks (lit#1341)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
aomarks authored Oct 1, 2020
1 parent 141afa8 commit b9b9d46
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/benchmarks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9b9d46

Please sign in to comment.