Refine CI with link checks for forked PRs (#2127)
* exclude RF universe links
This commit is contained in:
parent
195f4618a3
commit
a4de1a0f47
|
|
@ -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",
|
||||
]
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in New Issue