From 15d0d5f7c60b89d708506adaa30e55f78bcba8ea Mon Sep 17 00:00:00 2001 From: Jake Henning <59198928+jkhenning@users.noreply.github.com> Date: Tue, 28 Dec 2021 17:34:05 +0200 Subject: [PATCH] Update links.yml --- .github/workflows/links.yml | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 30b0f35f..8530855b 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -37,12 +37,8 @@ jobs: - name: Read Results if: ${{ steps.lychee.outputs.exit_code != 0 }} - run: echo "REPORT=$(jq -Rs '.' ./lychee/out.md)" >> $GITHUB_ENV - - - name: Echo Results - if: ${{ steps.lychee.outputs.exit_code != 0 }} - run: echo $REPORT - + run: echo "FAILED_URLS=$(jq -r '.fail_map[] | .[] | .url' ./lychee/out.md)" >> $GITHUB_ENV + - name: Slack Notification if: ${{ steps.lychee.outputs.exit_code != 0 }} uses: tokorom/action-slack-incoming-webhook@main @@ -52,5 +48,5 @@ jobs: blocks: | [ {"type": "section", "text": {"type": "mrkdwn", "text": ":warning: Link Checker failure in github.com/allegroai/clearl-docs "}}, - {"type": "section", "text": {"type": "mrkdwn", "text": $REPORT}} + {"type": "section", "text": {"type": "mrkdwn", "text": "$FAILED_URLS"}} ]