From dea9ea9305eb45e44592affea5a256c2c70fc771 Mon Sep 17 00:00:00 2001 From: Sabarish Date: Sun, 29 Mar 2026 01:36:04 -0400 Subject: [PATCH] ci: add markdown link checker in workflow #544 --- .github/workflows/markdown-link-check.yml | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/markdown-link-check.yml diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml new file mode 100644 index 00000000..bf18f5e6 --- /dev/null +++ b/.github/workflows/markdown-link-check.yml @@ -0,0 +1,31 @@ +name: Markdown Link Check + +on: + pull_request: + paths: + - '**/*.md' + workflow_dispatch: + +jobs: + link-check: + runs-on: ubuntu-latest + steps: + - name: Checkout Repository + uses: actions/checkout@v4 + + - name: Get Changed Markdown Files + id: changed-files + uses: tj-actions/changed-files@v44 + with: + files: | + **/*.md + + - name: Run Link Checker + if: steps.changed-files.outputs.any_changed == 'true' + uses: lycheeverse/lychee-action@v1.9.0 + with: + # Configuration is defined here directly in YAML (no JSON file needed) + # --exclude-loopback: ignores localhost/127.0.0.1 + # --verbose: shows details in the logs + args: --verbose --no-progress --exclude-loopback ${{ steps.changed-files.outputs.all_changed_files }} + fail: true \ No newline at end of file