From 49c82451c4ddaa0af55f101a2daf6fe310f0094c Mon Sep 17 00:00:00 2001 From: Sven Kieske Date: Fri, 8 Dec 2023 10:17:00 +0100 Subject: [PATCH] [CI] add a job to check for broken links Signed-off-by: Sven Kieske --- .github/workflows/link-check.yml | 15 +++++++++++++++ .github/workflows/markdown-link-check.json | 7 +++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/link-check.yml create mode 100644 .github/workflows/markdown-link-check.json diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml new file mode 100644 index 0000000000..9032cf1691 --- /dev/null +++ b/.github/workflows/link-check.yml @@ -0,0 +1,15 @@ +name: Check Markdown links +on: + push: + +jobs: + markdown-link-check: + name: Markdown Link Check + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@master + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: .github/workflows/markdown-link-check.json + use-quiet-mode: 'no' + use-verbose-mode: 'yes' diff --git a/.github/workflows/markdown-link-check.json b/.github/workflows/markdown-link-check.json new file mode 100644 index 0000000000..cb5f71e5f7 --- /dev/null +++ b/.github/workflows/markdown-link-check.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^(?!https?:\/\/.*)|^(https:\/\/.*osism.xyz)(:?[0-9]+)?(\/.*)?$" + } + ] + }