From 3d0d89e50514a316a3308e89d2dea2733a860fc4 Mon Sep 17 00:00:00 2001 From: "M. J. Fromberger" Date: Tue, 29 Mar 2022 11:32:22 -0700 Subject: [PATCH] Re-enable markdown link checker. (#8212) The upstream fix for link syntax has landed. - Uncomment the workflow and bump the version. - Add a config file to encourage retries. --- .github/workflows/markdown-links.yml | 35 ++++++++++++++-------------- .md-link-check.json | 6 +++++ 2 files changed, 23 insertions(+), 18 deletions(-) create mode 100644 .md-link-check.json diff --git a/.github/workflows/markdown-links.yml b/.github/workflows/markdown-links.yml index a03dd9b72..503af7b0e 100644 --- a/.github/workflows/markdown-links.yml +++ b/.github/workflows/markdown-links.yml @@ -1,19 +1,18 @@ -# TODO: Re-enable when https://github.com/gaurav-nelson/github-action-markdown-link-check/pull/126 lands. +name: Check Markdown links -#name: Check Markdown links -# -#on: -# push: -# branches: -# - master -# pull_request: -# branches: [master] -# -#jobs: -# markdown-link-check: -# runs-on: ubuntu-latest -# steps: -# - uses: actions/checkout@v3 -# - uses: gaurav-nelson/github-action-markdown-link-check@v1.0.13 -# with: -# check-modified-files-only: 'yes' +on: + push: + branches: + - master + pull_request: + branches: [master] + +jobs: + markdown-link-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: gaurav-nelson/github-action-markdown-link-check@1.0.14 + with: + check-modified-files-only: 'yes' + config-file: '.md-link-check.json' diff --git a/.md-link-check.json b/.md-link-check.json new file mode 100644 index 000000000..6f47fa2c9 --- /dev/null +++ b/.md-link-check.json @@ -0,0 +1,6 @@ +{ + "retryOn429": true, + "retryCount": 5, + "fallbackRetryDelay": "30s", + "aliveStatusCodes": [200, 206, 503] +}