From 4cc9ac726283af10d11e96aef3b5dd7df7ce3548 Mon Sep 17 00:00:00 2001 From: Antoine Cotten Date: Mon, 7 Oct 2024 14:59:42 +0200 Subject: [PATCH] ci: Replace markdown-link-check with Linkspector Ref. gaurav-nelson/github-action-markdown-link-check@7d83e59a57f3c201c76eed3d33dff64ec4452d27 --- .github/workflows/docs.yml | 8 +++++--- .github/workflows/lint/linkspector.yml | 3 +++ .github/workflows/lint/{markdown.yaml => markdown.yml} | 0 .github/workflows/mlc_config.json | 5 ----- 4 files changed, 8 insertions(+), 8 deletions(-) create mode 100644 .github/workflows/lint/linkspector.yml rename .github/workflows/lint/{markdown.yaml => markdown.yml} (100%) delete mode 100644 .github/workflows/mlc_config.json diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 2b39074798..a9ff3bb74d 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -18,12 +18,14 @@ jobs: - uses: actions/checkout@v4 - name: Check links - uses: gaurav-nelson/github-action-markdown-link-check@v1 + uses: UmbrellaDocs/action-linkspector@v1 with: - config-file: .github/workflows/mlc_config.json + config_file: .github/workflows/lint/linkspector.yml + fail_on_error: 'true' + filter_mode: nofilter - name: Lint uses: avto-dev/markdown-lint@v1 with: args: '**/*.md' - config: .github/workflows/lint/markdown.yaml + config: .github/workflows/lint/markdown.yml diff --git a/.github/workflows/lint/linkspector.yml b/.github/workflows/lint/linkspector.yml new file mode 100644 index 0000000000..066d2abd40 --- /dev/null +++ b/.github/workflows/lint/linkspector.yml @@ -0,0 +1,3 @@ +dirs: [ . ] +ignorePatterns: + - pattern: '^http:\/\/localhost:' diff --git a/.github/workflows/lint/markdown.yaml b/.github/workflows/lint/markdown.yml similarity index 100% rename from .github/workflows/lint/markdown.yaml rename to .github/workflows/lint/markdown.yml diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json deleted file mode 100644 index 6b37a94fe5..0000000000 --- a/.github/workflows/mlc_config.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "ignorePatterns": [ - { "pattern": "^http:\/\/localhost:" } - ] -}