Skip to content

Commit

Permalink
Switch link checker to lychee
Browse files Browse the repository at this point in the history
  • Loading branch information
trask committed Dec 20, 2024
1 parent d7b53a8 commit f75c55c
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 42 deletions.
15 changes: 0 additions & 15 deletions .github/config/markdown-link-check-config.json

This file was deleted.

17 changes: 0 additions & 17 deletions .github/scripts/markdown-link-check-with-retry.sh

This file was deleted.

20 changes: 10 additions & 10 deletions .github/workflows/reusable-markdown-link-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ jobs:
steps:
- uses: actions/checkout@v4

- name: Install markdown-link-check
# TODO(jack-berg): use latest when config file reading bug is fixed: https://github.com/tcort/markdown-link-check/issues/246
run: npm install -g markdown-link-check@3.10.3

- name: Run markdown-link-check
run: |
find . -type f \
-name '*.md' \
-not -path './CHANGELOG.md' \
| xargs .github/scripts/markdown-link-check-with-retry.sh
- uses: lycheeverse/lychee-action@v2
with:
# remove version after next release of lychee-action
lycheeVersion: latest
# excluding links to pull requests and issues is done for performance
args: >
--include-fragments
--exclude "^https://github.com/open-telemetry/opentelemetry-java-contrib/(issue|pull)/\\d+$"
--max-retries 6
.

0 comments on commit f75c55c

Please sign in to comment.