Skip to content

Commit

Permalink
Check broken links in markdown files (#224)
Browse files Browse the repository at this point in the history
* Check broken links in markdown files
* use base branch config
* only check modified files
* run link checker only on pull request
  • Loading branch information
shamsher31 authored Nov 11, 2021
1 parent 4898e5f commit b95d6ef
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/docs-lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Check Markdown links

on:
pull_request:
paths:
- '**.md'

jobs:
markdown-link-check:
name: Broken Links
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'
check-modified-files-only: 'yes'
base-branch: 'main'
config-file: '.github/workflows/markdown.links.config.json'
12 changes: 12 additions & 0 deletions .github/workflows/markdown.links.config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
}
],
"timeout": "30s",
"retryOn429": true,
"retryCount": 3,
"fallbackRetryDelay": "30s",
"aliveStatusCodes": [200, 206]
}

0 comments on commit b95d6ef

Please sign in to comment.