diff --git a/.github/workflows/build-package.yml b/.github/workflows/build-package.yml index df509112..5c1c2e58 100644 --- a/.github/workflows/build-package.yml +++ b/.github/workflows/build-package.yml @@ -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 diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index a171f71f..2bf9b6dd 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -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