From 110abddd1356c759fed70b6492588ee6dfdbd4e6 Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Mon, 27 Dec 2021 23:19:55 +0200 Subject: [PATCH] Update links.yml --- .github/workflows/links.yml | 23 ++++++++--------------- 1 file changed, 8 insertions(+), 15 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 74bb892d..93b5cc30 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -41,19 +41,12 @@ jobs: - name: Slack Notification if: ${{ steps.lychee.outputs.exit_code != 0 }} - uses: tiloio/slack-webhook-action@v1.0.1 + uses: tokorom/action-slack-incoming-webhook@main + env: + INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} with: - slack_web_hook_url: ${{ secrets.SLACK_WEBHOOK }} - slack_json: | - { - "text": "Link Checker failure in github.com/allegroai/clearl-docs", - "blocks": [ - { - "type": "section", - "text": { - "type": "mrkdwn", - "text": $REPORT - } - } - ] - } + blocks: | + [ + {"type": "section", "text": {"type": "mrkdwn", "text": ":warning: Link Checker failure in github.com/allegroai/clearl-docs "}}, + {"type": "section", "text": {"type": "mrkdwn", "text": $REPORT}} + ]