From 3cfc164acd941eb3bca4fd87021a70759a748af6 Mon Sep 17 00:00:00 2001 From: Dylan Page Date: Wed, 12 Apr 2023 19:24:19 -0400 Subject: [PATCH] ci: fix docker push logic when PR originates from fork (#3324) --- .github/workflows/atlantis-image.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/atlantis-image.yml b/.github/workflows/atlantis-image.yml index 504ad60612..e7a2829a7a 100644 --- a/.github/workflows/atlantis-image.yml +++ b/.github/workflows/atlantis-image.yml @@ -28,7 +28,7 @@ jobs: # Set docker repo to either the fork or the main repo where the branch exists DOCKER_REPO: ghcr.io/${{ github.repository }} # Push if not a pull request or this is a fork - PUSH: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository }} + PUSH: ${{ github.event_name != 'pull_request' || !github.event.pull_request.head.repo.fork }} steps: - uses: actions/checkout@v3