diff --git a/.github/scripts/lychee-config.toml b/.github/config/lychee.toml similarity index 100% rename from .github/scripts/lychee-config.toml rename to .github/config/lychee.toml diff --git a/.github/workflows/reusable-link-check.yml b/.github/workflows/reusable-link-check.yml index 1cdfdba5e..9cfd9ff48 100644 --- a/.github/workflows/reusable-link-check.yml +++ b/.github/workflows/reusable-link-check.yml @@ -41,7 +41,7 @@ jobs: run: | merge_base=$(git merge-base origin/${{ github.base_ref }} HEAD) config_modified=$(git diff --name-only $merge_base...${{ github.event.pull_request.head.sha }} \ - | grep -E '\.github/scripts/(lychee-config\.toml|link-check\.sh|dependencies\.Dockerfile)$' || true) + | grep -E '^(\.github/config/lychee\.toml|mise\.toml)$' || true) if [ -n "$config_modified" ]; then echo "modified=true" >> $GITHUB_OUTPUT else diff --git a/mise.toml b/mise.toml index c37d5027f..e00ac63b2 100644 --- a/mise.toml +++ b/mise.toml @@ -5,7 +5,8 @@ lychee = "0.18.1" run = 'lychee --verbose --scheme file --include-fragments {{arg(name="files", default=".")}}' [tasks.lint-links] -run = 'lychee --verbose --config .github/scripts/lychee-config.toml {{arg(name="files", default=".")}}' +run = 'lychee --verbose --config .github/config/lychee.toml {{arg(name="files", var=true, default=".")}}' [settings] +# Only install tools explicitly defined in the [tools] section above idiomatic_version_file_enable_tools = []