Skip to content

Commit

Permalink
link checker for website
Browse files Browse the repository at this point in the history
  • Loading branch information
gulcingulletutan committed May 3, 2024
1 parent 23d6145 commit 3b1c585
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/link-checker-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"projectBaseUrl":"${https://github.com/ESMValGroup/ESMValTool-website}",
"ignorePatterns": [
{
"pattern": "^http://example.net"
}
],
"timeout": "20s",
"retryOn429": true,
"retryCount": 5,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206]
}
15 changes: 15 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Check Markdown links

on: push

jobs:
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-quiet-mode: 'yes'
use-verbose-mode: 'yes'
config-file: 'link-checker-config.json'
folder-path: 'docs/markdown_files'

0 comments on commit 3b1c585

Please sign in to comment.