From 0dc9188c5bc3aa01e756ff545e98d20bd0f99dd8 Mon Sep 17 00:00:00 2001 From: jirka <6035284+Borda@users.noreply.github.com> Date: Tue, 3 Feb 2026 10:30:42 +0100 Subject: [PATCH] Add `link-check` input to CI workflows with conditional execution adjustments --- .github/workflows/build-package.yml | 6 +++++- .github/workflows/ci-tests.yml | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) 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