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 29, 2022
1 parent fb21ad3 commit d9fd250
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 d9fd250

Please sign in to comment.