Skip to content

Commit

Permalink
#2638 add new linkcheck workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
arporter committed Jul 1, 2024
1 parent 98e15d6 commit efecf8d
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/linkcheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Linkspector
on: [pull_request]
jobs:
check-links:
if: ${{ github.repository != 'stfc/PSyclone-mirror' }}
name: runner / linkspector
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Run linkspector
uses: umbrelladocs/action-linkspector@v1
with:
github_token: ${{ secrets.github_token }}
reporter: github-pr-review
fail_on_error: true
config_file: '.github/workflows/linkspector.yml'
13 changes: 13 additions & 0 deletions .github/workflows/linkspector.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
dirs:
- .
useGitIgnore: true
ignorePatterns:
- pattern: '^https://mybinder.org/v2/gh/stfc/psyclone'
replacementPatterns:
- pattern: '^https:\/\/(psyclone.*\.readthedocs\.io\/en\/)stable$'
replacement: 'https://$1/latest'
aliveStatusCodes:
- 200
- 401
- 502
- 503

0 comments on commit efecf8d

Please sign in to comment.