From 60825af0deefc93af51642ebf51ab415514ca2c4 Mon Sep 17 00:00:00 2001 From: sakulstra Date: Tue, 7 May 2024 15:16:25 +0200 Subject: [PATCH] ci: run comment action only on success or failure --- .github/workflows/comment.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/comment.yml b/.github/workflows/comment.yml index 1f533770..c8013e5d 100644 --- a/.github/workflows/comment.yml +++ b/.github/workflows/comment.yml @@ -17,6 +17,9 @@ jobs: comment: name: Comment Bot runs-on: ubuntu-latest + # workflow run triggeres on all types of "completed" including "cancelled" and similar + # we want this action to only run on a success & failure though + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event.workflow_run.conclusion == 'failure' }} steps: - uses: actions/download-artifact@v4 with: