From c467a58cc4d87a1ddb6c463a065b62573f34dc23 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jon=20Haitz=20Legarreta=20Gorro=C3=B1o?= Date: Tue, 27 May 2025 19:02:46 -0400 Subject: [PATCH] MNT: Add GHA workflow file to check links in Markdown files Add GHA workflow file to check links in Markdown files: signals broken links. Uses the `tcort/github-action-markdown-link-check` action from https://github.com/tcort/github-action-markdown-link-check --- .github/workflows/linkcheck.yml | 34 +++++++++++++++++++++++++++++++++ 1 file changed, 34 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 0000000..64d1ad6 --- /dev/null +++ b/.github/workflows/linkcheck.yml @@ -0,0 +1,34 @@ +name: Check links + +on: + push: + branches: [mkdocs] + pull_request: + branches: [mkdocs] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +# Force to use color +env: + FORCE_COLOR: true + +jobs: + + link-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: 3.12 + + - uses: tcort/github-action-markdown-link-check@v1 + with: + use-quiet-mode: yes + # use-verbose-mode: no