diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 9d65bc96..67be03c1 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -28,7 +28,7 @@ jobs: - name: Exit if pull request is from a fork run: | - if [ "${{ github.event_name }}" == "pull_request_target" ] && [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.repository.full_name }}" ]; then + if [ "${{ github.event_name }}" == "pull_request" ] && [ "${{ github.event.pull_request.head.repo.full_name }}" != "${{ github.event.repository.full_name }}" ]; then echo "Skipping workflow as this pull request is from a fork." exit 78 fi