mirror of
https://github.com/clearml/clearml-docs
synced 2025-01-31 06:27:22 +00:00
Update links.yml
This commit is contained in:
parent
96b59facb7
commit
ada7610ebc
30
.github/workflows/links.yml
vendored
30
.github/workflows/links.yml
vendored
@ -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"}}
|
||||
# ]
|
||||
|
Loading…
Reference in New Issue
Block a user