Skip to content

Commit

Permalink
ci: prevent the jobs for running on an action for fork
Browse files Browse the repository at this point in the history
  • Loading branch information
derevnjuk committed Jan 3, 2022
1 parent 1b0ded3 commit 75d9e69
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ jobs:
- name: Run benchmarks
run: yarn benchmarks
- uses: actions/github-script@v4
if: ${{ github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork }}
with:
github-token: ${{secrets.GITHUB_TOKEN}}
script: |
Expand Down

0 comments on commit 75d9e69

Please sign in to comment.