Update links.yml

This commit is contained in:
Noam Wasersprung 2022-01-05 16:20:30 +02:00 committed by GitHub
parent 96b59facb7
commit ada7610ebc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,23 +30,23 @@ jobs:
id: lychee
uses: lycheeverse/lychee-action@v1.2.0
with:
format: json
#format: json
args: --verbose --no-progress ${{ env.MD_FILES }}
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Read Results
if: ${{ steps.lychee.outputs.exit_code != 0 }}
run: echo "FAILED_URLS=$(jq -r '.fail_map[] | .[] | .url' ./lychee/out.md)" >> $GITHUB_ENV
#- name: Read Results
# if: ${{ steps.lychee.outputs.exit_code != 0 }}
# 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
env:
INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
with:
blocks: |
[
{"type": "section", "text": {"type": "mrkdwn", "text": ":warning: Link Checker failure in github.com/allegroai/clearl-docs "}},
{"type": "section", "text": {"type": "mrkdwn", "text": "$FAILED_URLS"}}
]
#- name: Slack Notification
# if: ${{ steps.lychee.outputs.exit_code != 0 }}
# uses: tokorom/action-slack-incoming-webhook@main
# env:
# INCOMING_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}
# with:
# blocks: |
# [
# {"type": "section", "text": {"type": "mrkdwn", "text": ":warning: Link Checker failure in github.com/allegroai/clearl-docs "}},
# {"type": "section", "text": {"type": "mrkdwn", "text": "$FAILED_URLS"}}
# ]