Update links.yml (#12319)
* Update links.yml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> * Update links.yml Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com> --------- Signed-off-by: Glenn Jocher <glenn.jocher@ultralytics.com>
This commit is contained in:
1 parent
1c60c53536
commit
61473c345e
1 file changed
+9
-4
@@ -1,6 +1,11 @@
|
|||||||
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
# Ultralytics YOLO 🚀, AGPL-3.0 license
|
||||||
# YOLO Continuous Integration (CI) GitHub Actions tests broken link checker
|
# Continuous Integration (CI) GitHub Actions tests broken link checker using https://github.com/lycheeverse/lychee
|
||||||
# Accept 429(Instagram, 'too many requests'), 999(LinkedIn, 'unknown status code'), Timeout(Twitter)
|
# Ignores the following status codes to reduce false positives:
|
||||||
|
# - 403(OpenVINO, 'forbidden')
|
||||||
|
# - 429(Instagram, 'too many requests')
|
||||||
|
# - 500(Zenodo, 'cached')
|
||||||
|
# - 502(Zenodo, 'bad gateway')
|
||||||
|
# - 999(LinkedIn, 'unknown status code')
|
||||||
|
|
||||||
name: Check Broken links
|
name: Check Broken links
|
||||||
|
|
||||||
@@ -28,7 +33,7 @@ jobs:
|
|||||||
timeout_minutes: 5
|
timeout_minutes: 5
|
||||||
retry_wait_seconds: 60
|
retry_wait_seconds: 60
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html'
|
command: lychee --accept 403,429,500,502,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html'
|
||||||
|
|
||||||
- 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'
|
||||||
@@ -37,4 +42,4 @@ jobs:
|
|||||||
timeout_minutes: 5
|
timeout_minutes: 5
|
||||||
retry_wait_seconds: 60
|
retry_wait_seconds: 60
|
||||||
max_attempts: 3
|
max_attempts: 3
|
||||||
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|url\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb'
|
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb'
|
||||||
Reference in new issue
Block a user