From 9debc2fd2c7b5c41bc7390caecd6d62cdc749d78 Mon Sep 17 00:00:00 2001 From: Luke Heath Date: Fri, 15 Sep 2023 14:32:13 -0500 Subject: [PATCH] Do not skip push commits on docker publish workflow (#13960) Co-authored-by: Roberto Dip --- .github/workflows/goreleaser-snapshot-fleet.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/goreleaser-snapshot-fleet.yaml b/.github/workflows/goreleaser-snapshot-fleet.yaml index c4e7355139..e35ecb5fac 100644 --- a/.github/workflows/goreleaser-snapshot-fleet.yaml +++ b/.github/workflows/goreleaser-snapshot-fleet.yaml @@ -31,7 +31,7 @@ jobs: # Docker will not be available. # # Also do not run if author is dependabot or is on a fork (it doesn't have access to Github secrets). - if: ${{ (github.repository == 'fleetdm/fleet') && (github.actor != 'dependabot[bot]') && (github.event.pull_request.head.repo.full_name == github.repository)}} + if: ${{ (github.repository == 'fleetdm/fleet') && (github.actor != 'dependabot[bot]') && ((github.event_name == 'push' && github.ref_name == 'main') || (github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name == github.repository)) }} runs-on: ubuntu-20.04 environment: Docker Hub steps: