Skip to content

Commit

Permalink
CI: do not run the benchmark on forks
Browse files Browse the repository at this point in the history
If done, it would fail anyway because it cannot find the `gh-pages`
branch to push the results to.
  • Loading branch information
sphuber committed Aug 31, 2021
1 parent 4174e5d commit 832bcb4
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 @@ -11,7 +11,8 @@ jobs:

run-and-upload:

if: ${{ github.event_name == 'push' }}
# Only run on pushes and when the job is on the main repository and not on forks
if: ${{ github.event_name == 'push' && github.repository == 'aiidateam/aiida-core' }}

strategy:
fail-fast: false
Expand Down

0 comments on commit 832bcb4

Please sign in to comment.