From feeb11df356973991da6c34bba4ca278c383e85c Mon Sep 17 00:00:00 2001 From: Christian Berendt Date: Wed, 13 Dec 2023 22:28:39 +0100 Subject: [PATCH] github: add markdown-link-check Signed-off-by: Christian Berendt --- .github/workflows/markdown-link-check.json | 7 +++++++ .github/workflows/markdown-link-check.yml | 15 +++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 .github/workflows/markdown-link-check.json create mode 100644 .github/workflows/markdown-link-check.yml diff --git a/.github/workflows/markdown-link-check.json b/.github/workflows/markdown-link-check.json new file mode 100644 index 0000000..f3f9be0 --- /dev/null +++ b/.github/workflows/markdown-link-check.json @@ -0,0 +1,7 @@ +{ + "ignorePatterns": [ + { + "pattern": "^(?!http(s)?:\/\/.*)|^(http(s)?:\/\/.*((osism.xyz)|(in-a-box.cloud)))(:?[0-9]+)?(\/.*)?$" + } + ] + } diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml new file mode 100644 index 0000000..9032cf1 --- /dev/null +++ b/.github/workflows/markdown-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'