Skip to content

Commit

Permalink
Fix CI markdown link check http 500 errors (HDFGroup#4556)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
derobins authored and byrnHDF committed Jun 26, 2024
1 parent cca9a8b commit 8a45f54
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
3 changes: 3 additions & 0 deletions .github/workflows/markdown_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliveStatusCodes": [200, 500]
}

0 comments on commit 8a45f54

Please sign in to comment.