diff --git a/.github/workflows/reusable-markdown-link-check.yml b/.github/workflows/reusable-markdown-link-check.yml index 36de638d8b9..5225a3f5a18 100644 --- a/.github/workflows/reusable-markdown-link-check.yml +++ b/.github/workflows/reusable-markdown-link-check.yml @@ -14,11 +14,6 @@ jobs: - uses: lycheeverse/lychee-action@82202e5e9c2f4ef1a55a3d02563e1cb6041e5332 # v2.4.1 with: - # excluding links to pull requests and issues is done for performance args: > - --include-fragments - --exclude "^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$" - --max-retries 6 - --retry-wait-time 10 - --max-concurrency 1 + --config ./lychee.toml . diff --git a/lychee.toml b/lychee.toml new file mode 100644 index 00000000000..983be337c01 --- /dev/null +++ b/lychee.toml @@ -0,0 +1,14 @@ +timeout = 30 +retry_wait_time = 10 +max_retries = 6 +max_concurrency = 1 + +# Check fragments in links +include_fragments = true + +# excluding links to pull requests and issues is done for performance +exclude = [ + "^https://github.com/open-telemetry/opentelemetry-java/(issues|pull)/\\d+$" +] + +