From 63e61daf6bc6baaab618fd6a8212ccda7c9987ad Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Mon, 27 Dec 2021 22:23:42 +0200 Subject: [PATCH] Update links.yml --- .github/workflows/links.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 99ba24be..5acd93e1 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -34,3 +34,25 @@ jobs: args: --verbose --no-progress ${{steps.find_files.outputs.files}} env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + + - name: Read Markdown + if: ${{ steps.lychee.outputs.exit_code != 0 }} + run: echo "REPORT=$(jq -Rs '.' ./lychee/out.md)" >> $GITHUB_ENV + + - name: Slack Notification + if: ${{ steps.lychee.outputs.exit_code != 0 }} + uses: tiloio/slack-webhook-action@v1.0.1 + 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" + } + ] + }