From 676af7bab4616b4b53a27d0f1cae5ecb5eada6c8 Mon Sep 17 00:00:00 2001 From: Daniel Hollas Date: Fri, 19 Jul 2024 11:24:01 +0100 Subject: [PATCH] Fix build on main --- .github/workflows/docker-build-test-upload.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-build-test-upload.yml b/.github/workflows/docker-build-test-upload.yml index ab62a71fb..c285cf4d0 100644 --- a/.github/workflows/docker-build-test-upload.yml +++ b/.github/workflows/docker-build-test-upload.yml @@ -57,8 +57,8 @@ jobs: uses: docker/build-push-action@v5 with: tags: ${{ steps.meta.outputs.tags }} - load: ${{ github.event.pull_request.head.repo.fork }} - push: ${{ ! github.event.pull_request.head.repo.fork }} + load: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork }} + push: ${{ ! (github.event_name == 'pull_request' && github.event.pull_request.head.repo.fork) }} context: . platforms: linux/amd64 cache-to: |