diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e7f7d1b6325..4de746cca20 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -845,7 +845,7 @@ jobs: since_last_remote_commit: true - name: Verify failed - if: steps.changed-files-since-last-remote-commit.outcome != 'failure' && matrix.fetch-depth == 1 && github.event.action == 'closed' + if: steps.changed-files-since-last-remote-commit.outcome != 'failure' && matrix.fetch-depth == 1 && github.event.action == 'closed' && github.event_name == 'pull_request' run: | echo "Expected: (failure) got ${{ steps.changed-files-since-last-remote-commit.outcome }}" exit 1