Skip to content

Commit a597bd6

Browse files
authored
Update links.yml (#40)
1 parent 6d67089 commit a597bd6

File tree

1 file changed

+28
-5
lines changed

1 file changed

+28
-5
lines changed

.github/workflows/links.yml

Lines changed: 28 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,14 @@ jobs:
4949
max_attempts: 3
5050
command: |
5151
rm -rf .lycheecache
52-
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'
52+
lychee
53+
--accept 403,429,500,502,999
54+
--exclude-loopback
55+
--exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)'
56+
--exclude-path '**/ci.yaml'
57+
--github-token ${{ secrets.GITHUB_TOKEN }}
58+
'./**/*.md'
59+
'./**/*.html'
5360
5461
- name: Download Ultralytics Website
5562
if: matrix.branch == 'main'
@@ -66,7 +73,13 @@ jobs:
6673
max_attempts: 3
6774
command: |
6875
rm -rf .lycheecache
69-
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'
76+
lychee
77+
--accept 403,429,500,502,999
78+
--exclude-loopback
79+
--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)'
80+
--exclude-path '**/ci.yaml'
81+
--github-token ${{ secrets.GITHUB_TOKEN }}
82+
'./ultralytics_website/**/*.html'
7083
7184
- name: Test Website, Markdown, HTML, YAML, Python and Notebook links with retry
7285
if: github.event_name == 'workflow_dispatch'
@@ -75,10 +88,20 @@ jobs:
7588
timeout_minutes: 5
7689
retry_wait_seconds: 60
7790
max_attempts: 3
78-
command: |
91+
command: |
7992
rm -rf .lycheecache
80-
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'
81-
93+
lychee
94+
--accept 429,999
95+
--exclude-loopback
96+
--exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|tiktok\.com|fonts\.gstatic\.com|fonts\.googleapis\.com|url\.com)'
97+
--exclude-path '**/ci.yaml'
98+
--github-token ${{ secrets.GITHUB_TOKEN }}
99+
'./**/*.md'
100+
'./**/*.html'
101+
'./**/*.yml'
102+
'./**/*.yaml'
103+
'./**/*.py'
104+
'./**/*.ipynb'
82105
83106
Summary:
84107
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)