Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17799 from storybookjs/ci/markdown-link-check
Build: Add weekly check for broken markdown links
- Loading branch information
Showing
2 changed files
with
38 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"replacementPatterns": [ | ||
{ | ||
"pattern": "^/", | ||
"replacement": "./" | ||
} | ||
], | ||
"ignorePatterns": [ | ||
{ | ||
"pattern": "localhost" | ||
}, | ||
{ | ||
"pattern": "https://github.com/storybookjs/storybook/pull/*" | ||
}, | ||
{ | ||
"pattern": "https://stackblitz.com/*" | ||
} | ||
] | ||
} |