Skip to content

Commit f28ade4

Browse files
committed
add config file for the markdown checker
# Conflicts: # .github/workflows/reusable-markdown-link-check.yml
1 parent 1e763b2 commit f28ade4

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

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

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,9 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
1414

15-
- uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 # v2.6.1
15+
- uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1
1616
with:
1717
lycheeVersion: v0.18.1
18-
# excluding links to pull requests and issues is done for performance
1918
args: >
20-
--include-fragments
21-
--exclude "^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$"
22-
--max-retries 6
23-
--retry-wait-time 10
24-
--max-concurrency 4
19+
--config ./lychee.toml
2520
.

lychee.toml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
timeout = 30
2+
retry_wait_time = 10
3+
max_retries = 6
4+
max_concurrency = 4
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+
exclude = [
14+
"^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$"
15+
]
16+
17+

0 commit comments

Comments
 (0)