Skip to content

Commit 308c9d6

Browse files
committed
add config for link checker
1 parent a833867 commit 308c9d6

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

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

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,7 @@ jobs:
1414

1515
- uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
1616
with:
17-
# excluding links to pull requests and issues is done for performance
1817
args: >
19-
--include-fragments
20-
--exclude "^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\\d+$"
21-
--max-retries 6
22-
--max-concurrency 1
18+
--config ./lychee.toml
19+
--github-token ${{ github.token }}
2320
.

lychee.toml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
timeout = 30
2+
retry_wait_time = 5
3+
max_retries = 6
4+
max_concurrency = 1
5+
6+
# Stealth
7+
user_agent = "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:128.0) Gecko/20100101 Firefox/128.0"
8+
9+
# Check fragments in links
10+
include_fragments = true
11+
12+
# excluding links to pull requests and issues is done for performance
13+
# sonatype snapshots are currrently unbrowseable
14+
exclude = [
15+
"^https://github.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\\d+$",
16+
'^https://central.sonatype.com/service/rest/repository/browse/maven-snapshots/io/opentelemetry/contrib/$',
17+
]
18+
19+

0 commit comments

Comments
 (0)