CI: only run publish job if on base repo

This commit is contained in:
Quentin McGaw (desktop) 2021-08-04 16:35:39 -04:00
parent 78ba73f34b
commit e3da58d55d

View File

@ -65,10 +65,13 @@ jobs:
publish: publish:
needs: [verify] 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 runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2.3.4 - 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-qemu-action@v1
- uses: docker/setup-buildx-action@v1 - uses: docker/setup-buildx-action@v1