Add `link-check` input to CI workflows with conditional execution adjustments
This commit is contained in:
parent
a4de1a0f47
commit
0dc9188c5b
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue