From caeca18ed73797669cfd109b62c92dcdffaeb2db Mon Sep 17 00:00:00 2001 From: "Quentin McGaw (desktop)" Date: Wed, 6 Oct 2021 18:54:44 +0000 Subject: [PATCH] Hotfix: ci workflow --- .github/workflows/ci.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 89424d2c..4a4ba6ec 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -29,7 +29,8 @@ on: jobs: verify: - if: github.event.pull_request.head.repo.full_name == github.repository + # Only run if it's a push event or if it's a PR from this repository + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository runs-on: ubuntu-latest env: DOCKER_BUILDKIT: "1" @@ -68,7 +69,8 @@ jobs: image: final-image publish: - if: github.event.pull_request.head.repo.full_name == github.repository + # Only run if it's a push event or if it's a PR from this repository + if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name == github.repository needs: [verify] runs-on: ubuntu-latest steps: @@ -99,7 +101,7 @@ jobs: fi - name: Build and push final image - uses: docker/build-push-action@v2.7.0 + uses: docker/build-push-action@v2.6.1 with: platforms: ${{ steps.vars.outputs.platforms }} build-args: |