diff --git a/.github/workflows/.linkspector.yml b/.github/workflows/.linkspector.yml new file mode 100644 index 0000000000..05accc25d6 --- /dev/null +++ b/.github/workflows/.linkspector.yml @@ -0,0 +1,6 @@ +dirs: + - content +useGitIgnore: true +fileExtensions: + - ".mdx" + - ".md" diff --git a/.github/workflows/linkspector.yml b/.github/workflows/linkspector.yml index 719cec08a6..5644f45ced 100644 --- a/.github/workflows/linkspector.yml +++ b/.github/workflows/linkspector.yml @@ -1,16 +1,16 @@ -name: Check MDX links - +name: Linkspector on: [pull_request] - jobs: - markdown-link-check: + check-links: + name: runner / linkspector runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: gaurav-nelson/github-action-markdown-link-check@v1 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@v1 with: - use-quiet-mode: "yes" - use-verbose-mode: "no" - folder-path: "content" - file-extension: ".mdx" - config-file: ".github/workflows/linkcheck_config.json" + github_token: ${{ secrets.github_token }} + reporter: github-pr-check + fail_on_error: true + filter_mode: nofilter + config_file: .github/workflows/.linkspector.yml diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml new file mode 100644 index 0000000000..719cec08a6 --- /dev/null +++ b/.github/workflows/markdown-link-check.yml @@ -0,0 +1,16 @@ +name: Check MDX links + +on: [pull_request] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-quiet-mode: "yes" + use-verbose-mode: "no" + folder-path: "content" + file-extension: ".mdx" + config-file: ".github/workflows/linkcheck_config.json"