From 216b7e79649c8d970cb0c2b73d7f5a68c2d6933a Mon Sep 17 00:00:00 2001 From: Artem Derevnjuk Date: Thu, 30 Dec 2021 18:45:54 +0300 Subject: [PATCH] ci: prevent the jobs for running on an action for fork See details in actions/github-script#42 --- .github/workflows/build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a62e4fe39a4..ebdb2d1ec43 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -104,6 +104,7 @@ jobs: run: yarn build benchmarks: + if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository }} runs-on: ubuntu-latest strategy: matrix: