Update links.yml (#13563)
Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>pull/13564/head
parent
f2f86eb355
commit
78daef4b23
|
@ -33,7 +33,6 @@ jobs:
|
||||||
retry_delay_seconds: 60
|
retry_delay_seconds: 60
|
||||||
retries: 2
|
retries: 2
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail # preserve exit code from lychee command in pipeline
|
|
||||||
lychee \
|
lychee \
|
||||||
--scheme 'https' \
|
--scheme 'https' \
|
||||||
--timeout 60 \
|
--timeout 60 \
|
||||||
|
@ -47,6 +46,11 @@ jobs:
|
||||||
'./**/*.md' \
|
'./**/*.md' \
|
||||||
'./**/*.html' | tee -a $GITHUB_STEP_SUMMARY
|
'./**/*.html' | tee -a $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
# Raise error if broken links found
|
||||||
|
if ! grep -q "0 Errors" $GITHUB_STEP_SUMMARY; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
- name: Test Markdown, HTML, YAML, Python and Notebook links with retry
|
- name: Test Markdown, HTML, YAML, Python and Notebook links with retry
|
||||||
if: github.event_name == 'workflow_dispatch'
|
if: github.event_name == 'workflow_dispatch'
|
||||||
uses: ultralytics/actions/retry@main
|
uses: ultralytics/actions/retry@main
|
||||||
|
@ -55,7 +59,6 @@ jobs:
|
||||||
retry_delay_seconds: 60
|
retry_delay_seconds: 60
|
||||||
retries: 2
|
retries: 2
|
||||||
run: |
|
run: |
|
||||||
set -o pipefail # preserve exit code from lychee command in pipeline
|
|
||||||
lychee \
|
lychee \
|
||||||
--scheme 'https' \
|
--scheme 'https' \
|
||||||
--timeout 60 \
|
--timeout 60 \
|
||||||
|
@ -72,3 +75,8 @@ jobs:
|
||||||
'./**/*.yaml' \
|
'./**/*.yaml' \
|
||||||
'./**/*.py' \
|
'./**/*.py' \
|
||||||
'./**/*.ipynb' | tee -a $GITHUB_STEP_SUMMARY
|
'./**/*.ipynb' | tee -a $GITHUB_STEP_SUMMARY
|
||||||
|
|
||||||
|
# Raise error if broken links found
|
||||||
|
if ! grep -q "0 Errors" $GITHUB_STEP_SUMMARY; then
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
Loading…
Reference in New Issue