diff --git a/.github/workflows/cron-weekly.yml b/.github/workflows/cron-weekly.yml new file mode 100644 index 000000000000..7b056c6148fc --- /dev/null +++ b/.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' diff --git a/.github/workflows/markdown-link-check-config.json b/.github/workflows/markdown-link-check-config.json new file mode 100644 index 000000000000..df6db06fff2e --- /dev/null +++ b/.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/*" + } + ] +} \ No newline at end of file