diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 000eca17..426ded00 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -138,8 +138,8 @@ jobs: id: changed-files continue-on-error: true uses: ./ - - - name: Exit with 1 if no error is raised + + - name: Exit with 1 if no error is raised and the PR is closed if: steps.changed-files.outcome != 'failure' && github.event.action == 'closed' run: | echo "Expected: (failure) got ${{ steps.changed-files.outcome }}"