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