From e3da58d55dfee22f19cb7c65981a2b938ba0975d Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Wed, 4 Aug 2021 16:35:39 -0400 Subject: [PATCH] CI: only run publish job if on base repo --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index cf988ad8..a7594138 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -65,10 +65,13 @@ jobs: publish: needs: [verify] - if: github.event_name == 'push' + if: github.event_name == 'push' && github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest steps: - uses: actions/checkout@v2.3.4 + with: + ref: ${{github.event.pull_request.head.ref}} + repository: ${{github.event.pull_request.head.repo.full_name}} - uses: docker/setup-qemu-action@v1 - uses: docker/setup-buildx-action@v1