Skip to content

Commit

Permalink
Check for internal links first and try --sync if async doesn't work
Browse files Browse the repository at this point in the history
  • Loading branch information
mjaehn committed Jul 2, 2024
1 parent 2842a9b commit 676df2d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/check_markdown_links.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Check for broken links (internal)
run: python check_md_links.py --path ./docs
- name: Check for broken links (external)
run: |
pip install mkdocs-linkcheck
exclude_patterns=$(cat exclude_link_patterns.txt | tr '\n' '|' | sed 's/|$//')
mkdocs-linkcheck -rv ./docs --ext=".md" --exclude="$exclude_patterns" -m get
- name: Check for broken links (internal)
run: python check_md_links.py --path ./docs
mkdocs-linkcheck -rv ./docs --ext=".md" --exclude="$exclude_patterns" -m get || mkdocs-linkcheck -rv ./docs --ext=".md" --exclude="$exclude_patterns" -m get --sync

0 comments on commit 676df2d

Please sign in to comment.