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
|
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"}}
|
||||||
]
|
# ]
|
||||||
|
Loading…
Reference in New Issue
Block a user