Skip to content

Commit d72fffb

Browse files
committed
lychee
1 parent 57b1001 commit d72fffb

File tree

6 files changed

+45
-41
lines changed

6 files changed

+45
-41
lines changed

.github/scripts/draft-change-log-entries.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
version=$("$(dirname "$0")/get-version.sh")
44

5+
# test a bad link https://doesnotexist23423223.com
6+
57
if [[ $version =~ ([0-9]+)\.([0-9]+)\.0 ]]; then
68
major="${BASH_REMATCH[1]}"
79
minor="${BASH_REMATCH[2]}"

.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
@@ -101,8 +101,8 @@ jobs:
101101
name: integration-test-results
102102
path: jmx-metrics/build/reports/tests/integrationTest
103103

104-
markdown-link-check:
105-
uses: ./.github/workflows/reusable-markdown-link-check.yml
104+
link-check:
105+
uses: ./.github/workflows/reusable-link-check.yml
106106

107107
markdown-lint-check:
108108
uses: ./.github/workflows/reusable-markdown-lint.yml
@@ -125,7 +125,7 @@ jobs:
125125
# and so would not short-circuit if used in the second-last position
126126
name: publish-snapshots${{ (github.ref_name != 'main' || github.repository != 'open-telemetry/opentelemetry-java-contrib') && ' (skipped)' || '' }}
127127
needs:
128-
# intentionally not blocking snapshot publishing on markdown-link-check or misspell-check
128+
# intentionally not blocking snapshot publishing on link-check or misspell-check
129129
- build
130130
- integration-test
131131
runs-on: ubuntu-latest
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Reusable - Check links
2+
3+
on:
4+
workflow_call:
5+
6+
jobs:
7+
check-links-github:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v4
11+
12+
# need to rate limit requests to github.com in order to avoid 429s
13+
- uses: lycheeverse/lychee-action@v2
14+
with:
15+
args: >
16+
--include-fragments
17+
--exclude-path CHANGELOG.md
18+
--include github.com
19+
-vvv
20+
--max-concurrency 5
21+
--max-retries 5
22+
--retry-wait-time 5000
23+
.
24+
25+
check-links-other:
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- uses: lycheeverse/lychee-action@v2
31+
with:
32+
args: >
33+
--include-fragments
34+
--exclude-path CHANGELOG.md
35+
--exclude github.com
36+
-vvv
37+
--max-concurrency 1
38+
.

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

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

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ the express scope of the [OpenTelemetry Java](https://github.com/open-telemetry/
77
easier way to bring observability to remote JVM-based applications and workflows that isn't easily satisfied by an SDK
88
feature or via instrumentation, this project is hopefully for you.
99

10+
Testing https://httpstat.us/429
11+
1012
## Provided Libraries
1113

1214
| Status* | Library |

0 commit comments

Comments
 (0)