diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a62e4fe39a4..df573268b50 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: | @@ -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: |