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.
This commit is contained in:
Dana Robinson 2024-06-07 13:08:50 -07:00 committed by GitHub
parent c1b3255c69
commit 5500743755
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 7 additions and 0 deletions

View File

@ -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'

View File

@ -0,0 +1,3 @@
{
"aliveStatusCodes": [200, 500]
}