From d0c60c5af06a9673eb9bbebb705ef1be91e0a364 Mon Sep 17 00:00:00 2001 From: Dipika Sikka Date: Thu, 29 Aug 2024 11:21:42 -0400 Subject: [PATCH] Fix markdown check test (#127) * fix markdown file * fix typo * update config file * move * update * update --- .github/workflows/linkcheck.yml | 8 +++++--- .github/workflows/linkspector/linkspector.yml | 10 ++++++++++ .github/workflows/mlc-config.json | 17 ----------------- 3 files changed, 15 insertions(+), 20 deletions(-) create mode 100644 .github/workflows/linkspector/linkspector.yml delete mode 100644 .github/workflows/mlc-config.json diff --git a/.github/workflows/linkcheck.yml b/.github/workflows/linkcheck.yml index 8d02a43c7..7573b91ff 100644 --- a/.github/workflows/linkcheck.yml +++ b/.github/workflows/linkcheck.yml @@ -16,7 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - uses: umbrelladocs/action-linkspector@v1 with: - use-quiet-mode: 'yes' - config-file: '.github/workflows/mlc_config.json' + github_token: ${{ secrets.github_token }} + reporter: github-pr-review + fail_on_error: true + config_file: '.github/workflows/linkspector/linkspector.yml' diff --git a/.github/workflows/linkspector/linkspector.yml b/.github/workflows/linkspector/linkspector.yml new file mode 100644 index 000000000..e553e9752 --- /dev/null +++ b/.github/workflows/linkspector/linkspector.yml @@ -0,0 +1,10 @@ +aliveStatusCodes: + - 0 + - 200 +ignorePatterns: + - pattern: '.*localhost.*' + - pattern: '.*127\\.0\\.0\\.1.*' + - pattern: '.*0\\.0\\.0\\.0.*' +dirs: + - . +useGitIgnore: true \ No newline at end of file diff --git a/.github/workflows/mlc-config.json b/.github/workflows/mlc-config.json deleted file mode 100644 index 8cdd2fa1a..000000000 --- a/.github/workflows/mlc-config.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "aliveStatusCodes": [ - 0, - 200 - ], - "ignorePatterns": [ - { - "pattern": ".*localhost.*" - }, - { - "pattern": ".*127\\.0\\.0\\.1.*" - }, - { - "pattern": ".*0\\.0\\.0\\.0.*" - } - ] -} \ No newline at end of file