From 7f28a2e4982fc7e8097fc0ae20112cc3e850c6c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Oliver=20B=C3=A4hler?= Date: Wed, 26 Nov 2025 15:16:08 +0100 Subject: [PATCH] feat: add lychee link checks MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Oliver Bähler --- .github/workflows/check-links.yml | 29 +++++++++++++++++++++++++++++ config/lychee.toml | 1 + 2 files changed, 30 insertions(+) create mode 100644 .github/workflows/check-links.yml create mode 100644 config/lychee.toml diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml new file mode 100644 index 0000000..40a7219 --- /dev/null +++ b/.github/workflows/check-links.yml @@ -0,0 +1,29 @@ +# yaml-language-server: $schema=https://json.schemastore.org/github-workflow.json + +name: Check Links + +permissions: {} + +on: + pull_request: + branches: + - "*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + linkChecker: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Check unrendered links + id: lychee_unrendered + uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1 + env: + GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} + with: + fail: true + debug: false + args: --github-token ${{secrets.GITHUB_TOKEN}} --config config/lychee.toml --max-concurrency 2 --max-retries 3 --retry-wait-time 5 --accept 200,429 --timeout 60 -E ./content \ No newline at end of file diff --git a/config/lychee.toml b/config/lychee.toml new file mode 100644 index 0000000..92bf725 --- /dev/null +++ b/config/lychee.toml @@ -0,0 +1 @@ +exclude_path = ["public/docs/reference/"] \ No newline at end of file