diff --git a/.github/workflows/config/linkspector.yml b/.github/workflows/config/linkspector.yml new file mode 100644 index 00000000..cf043e46 --- /dev/null +++ b/.github/workflows/config/linkspector.yml @@ -0,0 +1,6 @@ +dirs: + - . +useGitIgnore: true +replacementPatterns: + - pattern: '(\((?=\W)\/?.*(#.*)\))' + replacement: '#{: $2}' diff --git a/.github/workflows/linkspector.yml b/.github/workflows/linkspector.yml new file mode 100644 index 00000000..b3993d37 --- /dev/null +++ b/.github/workflows/linkspector.yml @@ -0,0 +1,19 @@ +name: linkspector-scan +on: + pull_request: + branches: + - live +jobs: + check-links: + name: Linkspector + runs-on: ubuntu-22.04 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + - name: Run linkspector + uses: umbrelladocs/action-linkspector@a0567ce1c7c13de4a2358587492ed43cab5d0102 # v1.3.4 + with: + filter_mode: nofilter + reporter: github-pr-review + fail_on_error: true + config_file: .github/workflows/config/linkspector.yml + \ No newline at end of file