From c97a7fc553cd35f29c7545e61a3c4d898ceafead Mon Sep 17 00:00:00 2001 From: Lars Eggert Date: Wed, 19 Jun 2024 16:55:21 +0300 Subject: [PATCH] fix: Don't try to generate PR comments for cancelled workflow runs (#1936) --- .github/workflows/pr-comment.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/pr-comment.yml b/.github/workflows/pr-comment.yml index 343251ac19..d294026124 100644 --- a/.github/workflows/pr-comment.yml +++ b/.github/workflows/pr-comment.yml @@ -21,7 +21,7 @@ jobs: runs-on: ubuntu-latest if: | github.event.workflow_run.event == 'pull_request' && - (github.event.workflow_run.name != 'CI' || github.event.workflow_run.conclusion == 'success' ) + (github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure') steps: - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 - uses: ./.github/actions/pr-comment