From 44f4625fc8b9aa2f80fd5757c29b5d66140d22b5 Mon Sep 17 00:00:00 2001 From: Claudia Garcia Date: Thu, 27 Apr 2023 11:19:50 +0100 Subject: [PATCH] [CONTENT-3783] Test new slack payload Signed-off-by: Claudia Garcia --- .github/workflows/main.yml | 46 ++++++++++++++++++-------------------- 1 file changed, 22 insertions(+), 24 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5be0630..cdda56a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -97,29 +97,27 @@ jobs: uses: slackapi/slack-github-action@v1.23.0 with: payload: | - { - "attachments": [ - { - "color": "#CC0000", - "fallback": "Unsuccessful bitnami/minideb CI pipeline", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "*Unsuccessful `bitnami/minideb` CI pipeline*" - } - }, - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": "The CI pipeline for <${{ github.event.head_commit.url }}|bitnami/minideb@${{ github.event.head_commit.id }}> did not succeed. Check the related <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|action run> for more information." - } - } - ] + { + "text": "*Unsuccessful `bitnami/minideb` CI pipeline*", + "blocks": [ + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "*Unsuccessful `bitnami/minideb` CI pipeline*" } - ] - } + }, + { + "type": "section", + "text": { + "type": "mrkdwn", + "text": "The CI pipeline for <${{ github.event.head_commit.url }}|bitnami/minideb@${{ github.event.head_commit.id }}> did not succeed. Check the related <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|action run> for more information." + } + } + ] + } + + env: - SLACK_WEBHOOK_URL: ${{ secrets.CI_SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_URL: ${{ secrets.TEST_CI_SLACK_WEBHOOK_URL }} + SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK