ci: fix docker push logic when PR originates from fork (#3324)

This commit is contained in:
Dylan Page
2023-04-12 19:24:19 -04:00
committed by GitHub
parent fd1ce4328d
commit 2c726aa75c

View File

@@ -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