From 5500743755389d71210ae5dc8ec953b9ba3b97f5 Mon Sep 17 00:00:00 2001 From: Dana Robinson <43805+derobins@users.noreply.github.com> Date: Fri, 7 Jun 2024 13:08:50 -0700 Subject: [PATCH] Fix CI markdown link check http 500 errors (#4556) Sites like GitLab can have internal problems that return http 500 errors while they fix their problems. Some sites also return http 200 OK, which is fine. This PR adds a config file to the markdown link check so those are considered "passing" and don't break the CI. --- .github/workflows/markdown-link-check.yml | 4 ++++ .github/workflows/markdown_config.json | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 .github/workflows/markdown_config.json diff --git a/.github/workflows/markdown-link-check.yml b/.github/workflows/markdown-link-check.yml index 00cb686c082..6a18f0b5bd4 100644 --- a/.github/workflows/markdown-link-check.yml +++ b/.github/workflows/markdown-link-check.yml @@ -6,9 +6,13 @@ on: pull_request: branches: [ develop ] +# The config file handles things like http 500 errors from sites like GitLab +# and http 200 responses jobs: markdown-link-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: gaurav-nelson/github-action-markdown-link-check@v1 + with: + config-file: '.github/workflows/markdown_config.json' diff --git a/.github/workflows/markdown_config.json b/.github/workflows/markdown_config.json new file mode 100644 index 00000000000..1ae40f89e5a --- /dev/null +++ b/.github/workflows/markdown_config.json @@ -0,0 +1,3 @@ +{ + "aliveStatusCodes": [200, 500] +}