From 3967cdec8976c7605ed8f41540379e76569863a8 Mon Sep 17 00:00:00 2001 From: Micha Hobert Date: Wed, 6 Dec 2023 10:56:22 +0100 Subject: [PATCH] Change conclusion check --- .github/workflows/watcher.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/watcher.yml b/.github/workflows/watcher.yml index 4aaf780a4..22baf6766 100644 --- a/.github/workflows/watcher.yml +++ b/.github/workflows/watcher.yml @@ -17,11 +17,21 @@ jobs: id: watcher - name: Send custom JSON data to Slack workflow id: slack - if: steps.watcher.conclusion != 'success' uses: slackapi/slack-github-action@v1.24.0 with: - # For posting a rich message using Block Kit - message: "GitHub Action build result" + payload: | + { + "text": "Text: GitHub Action build result: ${{ job.status }}", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "Block: GitHub Action build result: ${{ job.status }}" + } + } + ] + } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_NOTIFICATIONS_WEBHOOK }} SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK