Skip to content

Commit 2cd3d9b

Browse files
authored
Update links.yml (#12)
1 parent 2820162 commit 2cd3d9b

File tree

1 file changed

+19
-13
lines changed

1 file changed

+19
-13
lines changed

.github/workflows/links.yml

Lines changed: 19 additions & 13 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

@@ -42,16 +47,7 @@ jobs:
4247
timeout_minutes: 5
4348
retry_wait_seconds: 60
4449
max_attempts: 3
45-
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html'
46-
47-
- name: Test Markdown, HTML, YAML, Python and Notebook links with retry
48-
if: github.event_name == 'workflow_dispatch'
49-
uses: nick-invision/retry@v2
50-
with:
51-
timeout_minutes: 5
52-
retry_wait_seconds: 60
53-
max_attempts: 3
54-
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb'
50+
command: lychee --accept 403,429,500,502,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html'
5551

5652
- name: Download Ultralytics Website
5753
if: matrix.branch == 'main'
@@ -66,7 +62,17 @@ jobs:
6662
timeout_minutes: 5
6763
retry_wait_seconds: 60
6864
max_attempts: 3
69-
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com|wellfound\.com|.*\.cloudfunctions\.net|0\.0\.0\.0:5543/predict/from_files)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './ultralytics_website/**/*.html'
65+
command: lychee --accept 403,429,500,502,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com|wellfound\.com|.*\.cloudfunctions\.net|0\.0\.0\.0:5543/predict/from_files)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './ultralytics_website/**/*.html'
66+
67+
- name: Test Website, Markdown, HTML, YAML, Python and Notebook links with retry
68+
if: github.event_name == 'workflow_dispatch'
69+
uses: nick-invision/retry@v2
70+
with:
71+
timeout_minutes: 5
72+
retry_wait_seconds: 60
73+
max_attempts: 3
74+
command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb'
75+
7076

7177
Summary:
7278
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)