Skip to content

Commit

Permalink
ci: fix docker push logic when PR originates from fork (runatlantis#3324
Browse files Browse the repository at this point in the history
)
  • Loading branch information
GenPage authored and ijames-gc committed Feb 13, 2024
1 parent 74e1801 commit 3cfc164
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/atlantis-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3cfc164

Please sign in to comment.