Skip to content

Commit abefda8

Browse files
authored
Convert markdown check to lychee (#170)
1 parent b324b7a commit abefda8

File tree

3 files changed

+8
-34
lines changed

3 files changed

+8
-34
lines changed

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

Lines changed: 0 additions & 7 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/reusable-markdown-link-check.yml

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1414

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

0 commit comments

Comments
 (0)