Add `link-check` input to CI workflows with conditional execution adjustments

This commit is contained in:
jirka 2026-02-03 10:30:42 +01:00
parent a4de1a0f47
commit 0dc9188c5b
2 changed files with 9 additions and 1 deletions

View File

@ -10,6 +10,10 @@ on:
required: false
type: string
default: "3.10"
link-check:
required: false
type: boolean
default: true
jobs:
build:
@ -30,7 +34,7 @@ jobs:
cat README.md
- name: 🔗 Link Checker
if: github.repository == 'roboflow/supervision'
if: inputs.link-check
uses: lycheeverse/lychee-action@v2
with:
lycheeVersion: v0.22.0

View File

@ -15,7 +15,11 @@ concurrency:
jobs:
build-pkg:
name: Build this Package
uses: ./.github/workflows/build-package.yml
with:
# only run link check on PRs from the same repo
link-check: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository }}
run-tests:
name: Import Test and Pytest Run