From d0eb24ad413662962dd01fa5ab8a1e929a4b3642 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..0dd4ab6188 --- /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' \ No newline at end of file diff --git a/.github/workflows/markdown-link-check.json b/.github/workflows/markdown-link-check.json new file mode 100644 index 0000000000..b85b5053b3 --- /dev/null +++ b/.github/workflows/markdown-link-check.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^(?!https?:\/\/.*)|^(https:\/\/.*osism.xyz)(:?[0-9]+)?(\/.*)?$" + } + ] + } \ No newline at end of file