diff --git a/.github/link_checker_config.json b/.github/link_checker_config.json new file mode 100644 index 00000000..570e6317 --- /dev/null +++ b/.github/link_checker_config.json @@ -0,0 +1,13 @@ +{ + "projectBaseUrl": "https://github.com/ESMValGroup/ESMValTool_Tutorial/", + "ignorePatterns": [ + { + "pattern": "^http://example.net" + } + ], + "timeout": "20s", + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206] +} diff --git a/.github/workflows/action.yml b/.github/workflows/action.yml new file mode 100644 index 00000000..7843bdcb --- /dev/null +++ b/.github/workflows/action.yml @@ -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' + file-path: './README.md, ./LICENSE.md, ./CONTRIBUTING.md, ./CODE_OF_CONDUCT.md, ./aio.md, ./index.md, ./reference.md, ./setup.md'