From a8e5141f2ac19be2b104ed23fe1f1bb3a5869ba8 Mon Sep 17 00:00:00 2001 From: Jason Penilla <11360596+jpenilla@users.noreply.github.com> Date: Sat, 4 Dec 2021 21:19:04 -0800 Subject: [PATCH] [ci skip] Fix double actions on PRs from main Paper repo --- .github/workflows/build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 51bf4958a..639dcbe4a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,8 @@ on: [push, pull_request] jobs: build: + # Only run on PRs if the source branch is on someone else's repo + if: ${{ github.event_name != 'pull_request' || github.repository != github.event.pull_request.head.repo.full_name }} runs-on: ubuntu-latest strategy: matrix: