diff --git a/.github/workflows/manage-prs.yml b/.github/workflows/manage-prs.yml index 33e832f2..ecd364c6 100644 --- a/.github/workflows/manage-prs.yml +++ b/.github/workflows/manage-prs.yml @@ -256,7 +256,8 @@ jobs: check-submissions-fail: needs: - check-submissions - if: failure() # This job will only run if the submission checks failed + # Only run if the check-submissions job failed + if: failure() && needs.check-submissions.result == 'failure' runs-on: ubuntu-latest steps: @@ -342,7 +343,8 @@ jobs: merge-fail: needs: - merge - if: failure() + # Only run if the merge job failed + if: failure() && needs.merge.result == 'failure' runs-on: ubuntu-latest steps: - name: Comment on merge failure