Skip to content

Commit

Permalink
Merge pull request #17799 from storybookjs/ci/markdown-link-check
Browse files Browse the repository at this point in the history
Build: Add weekly check for broken markdown links
  • Loading branch information
ndelangen committed Mar 31, 2022
2 parents cf752b3 + 9bc4580 commit a91b421
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/cron-weekly.yml
@@ -0,0 +1,19 @@
name: Markdown Links Check
# runs every monday at 9 am
on:
schedule:
- cron: "0 9 * * 1"

jobs:
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gaurav-nelson/github-action-markdown-link-check@v1
# checks all markdown files from important folders including all subfolders
with:
# only show errors that occur instead of successful links + errors
use-quiet-mode: 'yes'
# output full HTTP info for broken links
use-verbose-mode: 'yes'
config-file: '.github/workflows/markdown-link-check-config.json'
19 changes: 19 additions & 0 deletions .github/workflows/markdown-link-check-config.json
@@ -0,0 +1,19 @@
{
"replacementPatterns": [
{
"pattern": "^/",
"replacement": "./"
}
],
"ignorePatterns": [
{
"pattern": "localhost"
},
{
"pattern": "https://github.com/storybookjs/storybook/pull/*"
},
{
"pattern": "https://stackblitz.com/*"
}
]
}

0 comments on commit a91b421

Please sign in to comment.