Skip to content

Commit 61473c3

Browse files
authored
Update links.yml (ultralytics#12319)
* Update links.yml Signed-off-by: Glenn Jocher <[email protected]> * Update links.yml Signed-off-by: Glenn Jocher <[email protected]> --------- Signed-off-by: Glenn Jocher <[email protected]>
1 parent 1c60c53 commit 61473c3

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/links.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
# Ultralytics YOLO 🚀, AGPL-3.0 license
2-
# YOLO Continuous Integration (CI) GitHub Actions tests broken link checker
3-
# Accept 429(Instagram, 'too many requests'), 999(LinkedIn, 'unknown status code'), Timeout(Twitter)
2+
# Continuous Integration (CI) GitHub Actions tests broken link checker using https://github.com/lycheeverse/lychee
3+
# Ignores the following status codes to reduce false positives:
4+
# - 403(OpenVINO, 'forbidden')
5+
# - 429(Instagram, 'too many requests')
6+
# - 500(Zenodo, 'cached')
7+
# - 502(Zenodo, 'bad gateway')
8+
# - 999(LinkedIn, 'unknown status code')
49

510
name: Check Broken links
611

@@ -28,7 +33,7 @@ jobs:
2833
timeout_minutes: 5
2934
retry_wait_seconds: 60
3035
max_attempts: 3
31-
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'
36+
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'
3237

3338
- name: Test Markdown, HTML, YAML, Python and Notebook links with retry
3439
if: github.event_name == 'workflow_dispatch'
@@ -37,4 +42,4 @@ jobs:
3742
timeout_minutes: 5
3843
retry_wait_seconds: 60
3944
max_attempts: 3
40-
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'
45+
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'

0 commit comments

Comments
 (0)