From e58970761291ac1dbeeb41208c781cad47bc40af Mon Sep 17 00:00:00 2001 From: "K. Shankari" Date: Sat, 26 Nov 2022 21:04:35 -0800 Subject: [PATCH] Fix the link check for Github sites By passing in the correct config file for the link checker code https://github.com/github/docs/issues/17358 --- .github/workflows/link-checks.yml | 5 ++++- .github/workflows/mlc_config.json | 10 ++++++++++ 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/mlc_config.json diff --git a/.github/workflows/link-checks.yml b/.github/workflows/link-checks.yml index 7549f0d9..694ab852 100644 --- a/.github/workflows/link-checks.yml +++ b/.github/workflows/link-checks.yml @@ -11,4 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: gaurav-nelson/github-action-markdown-link-check@0.6.0 + - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + use-verbose-mode: 'yes' + config-file: '.github/workflows/mlc_config.json' diff --git a/.github/workflows/mlc_config.json b/.github/workflows/mlc_config.json new file mode 100644 index 00000000..76af7fd9 --- /dev/null +++ b/.github/workflows/mlc_config.json @@ -0,0 +1,10 @@ +{ + "httpHeaders": [ + { + "urls": ["https://github.com/", "https://guides.github.com/", "https://help.github.com/", "https://docs.github.com/"], + "headers": { + "Accept-Encoding": "zstd, br, gzip, deflate" + } + } + ] +}