From 9f81925fa706211c300acabc90d038e2ea3b0f86 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..fdd7c705b3e 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.fork }} runs-on: ubuntu-latest strategy: matrix: