From 6c1b3beda47aaf8bf1f505cb8c388e6bc021373c Mon Sep 17 00:00:00 2001 From: Philip Offtermatt Date: Fri, 1 Dec 2023 15:57:40 +0100 Subject: [PATCH] Check repo root and docs/docs separately --- .github/workflows/linkchecker.yml | 25 ++++++++++++++----------- .markdownlink_check_config.json | 7 ------- 2 files changed, 14 insertions(+), 18 deletions(-) delete mode 100644 .markdownlink_check_config.json diff --git a/.github/workflows/linkchecker.yml b/.github/workflows/linkchecker.yml index a60c5e13a0..21efc243e4 100644 --- a/.github/workflows/linkchecker.yml +++ b/.github/workflows/linkchecker.yml @@ -1,20 +1,23 @@ name: Check Markdown links on: push jobs: - markdown-link-check: + Check markdown links in the repo root: runs-on: ubuntu-latest steps: # Check out the latest version of the code - uses: actions/checkout@v4 - - # Remove folders that we do not want to check. - # This is due to the markdown-link-check action - # not having an exclude parameter, see - # https://github.com/gaurav-nelson/github-action-markdown-link-check/issues/38 - - name: Remove folders that we do not want to check - run: rm -rf .changelog - - # Checks the status of hyperlinks in *.md files in docs/ + # Checks the status of hyperlinks in *.md files in the repo root - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 with: - config-file: .markdownlink_check_config.json \ No newline at end of file + folder-path: '.' + max-depth: 1 + + Check markdown links in docs/docs: + runs-on: ubuntu-latest + steps: + # Check out the latest version of the code + - uses: actions/checkout@v4 + # Checks the status of hyperlinks in *.md files in the docs/docs folder + - uses: gaurav-nelson/github-action-markdown-link-check@1.0.15 + with: + folder-path: 'docs/docs' diff --git a/.markdownlink_check_config.json b/.markdownlink_check_config.json deleted file mode 100644 index 0b386b1ecd..0000000000 --- a/.markdownlink_check_config.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "*.changelog*" - } - ] -} \ No newline at end of file