From 9d11e0aee527261d9ef8790ceab84f89d132d580 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20Bla=C5=A1ko?= Date: Tue, 28 Nov 2023 16:59:18 +0100 Subject: [PATCH] Update publish-docker-image.yml --- .github/workflows/publish-docker-image.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish-docker-image.yml b/.github/workflows/publish-docker-image.yml index 7e1ca517..341e12c0 100644 --- a/.github/workflows/publish-docker-image.yml +++ b/.github/workflows/publish-docker-image.yml @@ -3,6 +3,8 @@ name: Publish Docker Image on: push: branches: [ main ] + pull_request: + branches: [ main ] workflow_dispatch: env: # Last fragment of identifier of the docker image @@ -13,7 +15,8 @@ env: jobs: build-and-publish: - + # Skip if PR is from a fork + if: github.event_name != 'pull_request' || github.event.repository.full_name == github.event.pull_request.head.repo.full_name runs-on: ubuntu-latest steps: