From 5a3b29147339ba30b80fb31cad32cada38fb60b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Sch=C3=B6chlin?= Date: Sun, 16 Jun 2024 19:09:09 +0200 Subject: [PATCH] experiment with a new link checker MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marc Schöchlin --- .github/workflows/link-check.yml | 16 +++++++++------- .github/workflows/linkspector.yml | 2 ++ .github/workflows/markdown-link-check.json | 7 ------- 3 files changed, 11 insertions(+), 14 deletions(-) create mode 100644 .github/workflows/linkspector.yml delete mode 100644 .github/workflows/markdown-link-check.json diff --git a/.github/workflows/link-check.yml b/.github/workflows/link-check.yml index 9032cf1691..d9b565b10b 100644 --- a/.github/workflows/link-check.yml +++ b/.github/workflows/link-check.yml @@ -3,13 +3,15 @@ on: push: jobs: - markdown-link-check: - name: Markdown Link Check + check-links: + name: runner / linkspector runs-on: ubuntu-latest steps: - - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - uses: actions/checkout@v4 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 with: - config-file: .github/workflows/markdown-link-check.json - use-quiet-mode: 'no' - use-verbose-mode: 'yes' + config-file: .github/workflows/linkspector.yml + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + fail_on_error: true diff --git a/.github/workflows/linkspector.yml b/.github/workflows/linkspector.yml new file mode 100644 index 0000000000..ccec76bf5e --- /dev/null +++ b/.github/workflows/linkspector.yml @@ -0,0 +1,2 @@ +ignorePatterns: + - pattern: "^(?!http(s)?:\/\/.*)|^(http(s)?:\/\/.*((osism.xyz)|(in-a-box.cloud)))(:?[0-9]+)?(\/.*)?$" diff --git a/.github/workflows/markdown-link-check.json b/.github/workflows/markdown-link-check.json deleted file mode 100644 index f3f9be0502..0000000000 --- a/.github/workflows/markdown-link-check.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "ignorePatterns": [ - { - "pattern": "^(?!http(s)?:\/\/.*)|^(http(s)?:\/\/.*((osism.xyz)|(in-a-box.cloud)))(:?[0-9]+)?(\/.*)?$" - } - ] - }