From 10408c2fa721364e2b2323dd55c09a67f8060925 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20Hells=C3=A9n?= Date: Sat, 27 Sep 2025 00:47:24 +0200 Subject: [PATCH] Add conditional checks for pull request events in Docker metadata extraction and image build steps --- .github/workflows/docker-publish.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index d89b426..15e7a91 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -40,12 +40,14 @@ jobs: # Extract metadata (tags, labels) from Git reference and GitHub events for Docker - id: meta uses: docker/metadata-action@v5 + if: github.event_name != 'pull_request' with: images: ghcr.io/thelovinator1/anewdawn tags: type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', 'master') }} # Build and push the Docker image - uses: docker/build-push-action@v6 + if: github.event_name != 'pull_request' with: context: . push: ${{ github.event_name != 'pull_request' }}