Skip to content

Commit ad5b349

Browse files
committed
Switch link checker to lychee
1 parent 079bd3d commit ad5b349

File tree

4 files changed

+13
-45
lines changed

4 files changed

+13
-45
lines changed

.github/config/markdown-link-check-config.json

Lines changed: 0 additions & 15 deletions
This file was deleted.

.github/scripts/markdown-link-check-with-retry.sh

Lines changed: 0 additions & 17 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ jobs:
120120
# and so would not short-circuit if used in the second-last position
121121
name: publish-snapshots${{ (github.ref_name != 'main' || github.repository != 'open-telemetry/opentelemetry-java-contrib') && ' (skipped)' || '' }}
122122
needs:
123-
# intentionally not blocking snapshot publishing on markdown-link-check or misspell-check
123+
# intentionally not blocking snapshot publishing on link-check or misspell-check
124124
- build
125125
- integration-test
126126
runs-on: ubuntu-latest
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
name: Reusable - Markdown link check
1+
name: Reusable - Check links
22

33
on:
44
workflow_call:
55

66
jobs:
7-
markdown-link-check:
7+
check-links:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Install markdown-link-check
13-
# TODO(jack-berg): use latest when config file reading bug is fixed: https://github.com/tcort/markdown-link-check/issues/246
14-
run: npm install -g [email protected]
15-
16-
- name: Run markdown-link-check
17-
run: |
18-
find . -type f \
19-
-name '*.md' \
20-
-not -path './CHANGELOG.md' \
21-
| xargs .github/scripts/markdown-link-check-with-retry.sh
12+
- uses: lycheeverse/lychee-action@v2
13+
with:
14+
# remove version after next release of lychee-action
15+
lycheeVersion: latest
16+
# excluding links to pull requests and issues is done for performance
17+
args: >
18+
--include-fragments
19+
--exclude "^https://github.com/open-telemetry/opentelemetry-java-instrumentation/(issue|pull)/\\d+$"
20+
--max-retries 6
21+
.

0 commit comments

Comments
 (0)