diff --git a/.github/workflows/reusable-markdown-link-check.yml b/.github/workflows/reusable-markdown-link-check.yml index 3120678ce..2d8b86577 100644 --- a/.github/workflows/reusable-markdown-link-check.yml +++ b/.github/workflows/reusable-markdown-link-check.yml @@ -14,10 +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-contrib/(issues|pull)/\\d+$" - --max-retries 6 - --max-concurrency 1 + --config ./.lychee.toml . diff --git a/.lychee.toml b/.lychee.toml new file mode 100644 index 000000000..5ebe04531 --- /dev/null +++ b/.lychee.toml @@ -0,0 +1,11 @@ +# Check link anchors +include_fragments = true + +# Retry configuration +max_retries = 6 +max_concurrency = 1 + +# excluding links to pull requests and issues is done for performance +exclude = [ + '^https://github\.com/open-telemetry/opentelemetry-java-contrib/(issues|pull)/\d+$', +] \ No newline at end of file