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 Dec 30, 2021
1 parent 1b0ded3 commit 68c25f3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 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 All @@ -134,6 +135,7 @@ jobs:
body: require('fs').readFileSync('./tools/benchmarks/dist/benchmarks.md', {encoding: 'utf8'})
})
- uses: actions/upload-artifact@v2
if:
with:
name: benchmarks
path: |
Expand Down

0 comments on commit 68c25f3

Please sign in to comment.