Skip to content

Commit

Permalink
Fix CI markdown link check http 500 errors
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. 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 committed Jun 7, 2024
1 parent c1b3255 commit 01405c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,12 @@ on:
pull_request:
branches: [ develop ]

# The config file handles things like http 500 errors from sites like GitLab
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: '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": [500]
}

0 comments on commit 01405c7

Please sign in to comment.