diff --git a/.github/workflows/check_release_notes.yml b/.github/workflows/check_release_notes.yml index 4daa1b8a560..f8073d10cd7 100644 --- a/.github/workflows/check_release_notes.yml +++ b/.github/workflows/check_release_notes.yml @@ -170,6 +170,7 @@ jobs: fi # Did bot already commented the PR? - name: Find Comment + if: success() || failure() uses: peter-evans/find-comment@v2.4.0 id: fc with: @@ -178,7 +179,7 @@ jobs: body-includes: '' # If not, create a new comment - name: Create comment - if: steps.fc.outputs.comment-id == '' + if: steps.fc.outputs.comment-id == '' && (success() || failure()) uses: peter-evans/create-or-update-comment@v3.1.0 with: issue-number: ${{ github.event.pull_request.number }} @@ -188,7 +189,7 @@ jobs: #reactions: rocket # If yes, update the comment - name: Update comment - if: steps.fc.outputs.comment-id != '' + if: steps.fc.outputs.comment-id != '' && (success() || failure()) uses: peter-evans/create-or-update-comment@v3.1.0 with: comment-id: ${{ steps.fc.outputs.comment-id }}