mirror of
https://git.vectorsigma.ru/public/atlantis.git
synced 2026-08-03 18:18:48 +00:00
ci: fix docker push logic when PR originates from fork (#3324)
This commit is contained in:
2
.github/workflows/atlantis-image.yml
vendored
2
.github/workflows/atlantis-image.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user