Skip to content

Commit 36703a5

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

File tree

5 files changed

+22
-56
lines changed

5 files changed

+22
-56
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: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ jobs:
9696
name: integration-test-results
9797
path: jmx-metrics/build/reports/tests/integrationTest
9898

99-
markdown-link-check:
100-
uses: ./.github/workflows/reusable-markdown-link-check.yml
99+
link-check:
100+
uses: ./.github/workflows/reusable-link-check.yml
101101

102102
markdown-lint-check:
103103
uses: ./.github/workflows/reusable-markdown-lint.yml
@@ -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: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Reusable - Check links
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
check-links:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
- uses: lycheeverse/lychee-action@v2
13+
with:
14+
# excluding links to pull requests and issues is done for performance
15+
args: >
16+
--include-fragments
17+
--exclude "^https://github.com/open-telemetry/opentelemetry-java-instrumentation/(issue|pull)/\\d+$"
18+
--max-retries 6
19+
.

.github/workflows/reusable-markdown-link-check.yml

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

0 commit comments

Comments
 (0)