Refine CI with link checks for forked PRs (#2127)

* exclude RF universe links
This commit is contained in:
Jirka Borovec 2026-02-03 18:12:21 +09:00 committed by GitHub
parent 195f4618a3
commit a4de1a0f47
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

2
.github/lychee.toml vendored
View File

@ -10,4 +10,6 @@ exclude = [
"http://127.0.0.1:8000", # hint for local docs server
"https://sam2.metademolab.com/", # returns 403 Forbidden
"https://snyk.io/advisor/python/supervision/badge.svg", # badge URL
"https://universe.roboflow.com/",
"https://universe.roboflow.com/model-examples/segmented-animals-basic",
]

View File

@ -30,6 +30,7 @@ jobs:
cat README.md
- name: 🔗 Link Checker
if: github.repository == 'roboflow/supervision'
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: v0.22.0

View File

@ -27,7 +27,6 @@ jobs:
lycheeVersion: v0.22.0
args: |
--config .github/lychee.toml
${{ secrets.UNIVERSE_RATELIMIT_BYPASS_KEY != '' && format('--header "x-ratelimit-bypass: {0}"', secrets.UNIVERSE_RATELIMIT_BYPASS_KEY) || '--exclude "https://universe.roboflow.com/.*"' }}
'./**/*.md'
# TODO: enable also following file types
# './**/*.toml'