From cb42d290bcf6f0878b1a2e32fa8aa95ad95d99d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Sat, 31 May 2025 12:56:32 -0400 Subject: [PATCH] ENH: Add link checker GHA workflow file Add link checker GHA workflow file: use the `lychee` action to check for broken links in Markdown, HTML, reStructuredText, and other files. Repository: https://github.com/lycheeverse/lychee-action Documentation: https://lychee.cli.rs/introduction/ --- .github/workflows/linkcheck.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/linkcheck.yml diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml new file mode 100644 index 000000000..1a4f522c9 --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,19 @@ +name: Check links + +on: [push, pull_request] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + linkcheck: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - name: Check links + id: lychee + uses: lycheeverse/lychee-action@v2 + with: + fail: true