diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 4e7a894dd0..cfa71e74ae 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -49,7 +49,14 @@ jobs: max_attempts: 3 command: | rm -rf .lycheecache - 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' + 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' + --github-token ${{ secrets.GITHUB_TOKEN }} + './**/*.md' + './**/*.html' - name: Download Ultralytics Website if: matrix.branch == 'main' @@ -66,7 +73,13 @@ jobs: max_attempts: 3 command: | rm -rf .lycheecache - 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' + 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' + --github-token ${{ secrets.GITHUB_TOKEN }} + './ultralytics_website/**/*.html' - name: Test Website, Markdown, HTML, YAML, Python and Notebook links with retry if: github.event_name == 'workflow_dispatch' @@ -75,10 +88,20 @@ jobs: timeout_minutes: 5 retry_wait_seconds: 60 max_attempts: 3 - command: | + command: | rm -rf .lycheecache - 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' - + 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' + --github-token ${{ secrets.GITHUB_TOKEN }} + './**/*.md' + './**/*.html' + './**/*.yml' + './**/*.yaml' + './**/*.py' + './**/*.ipynb' Summary: runs-on: ubuntu-latest