fix: use dirname directly instead of executing its output
Install yq / install-yq (ubuntu-latest-amd64, amd64, linux) (push) Successful in 7s
Install yq / install-yq (ubuntu-latest-arm64, arm64, linux) (push) Successful in 10s
Markdown linter / markdown-link-checker (push) Successful in 24s
Markdown linter / markdown-lint (push) Successful in 33s

The command substitution caused the directory path to be executed as a
command rather than written to GITHUB_PATH, resulting in
"Is a directory" errors at runtime.

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-08-16 22:20:51 +02:00
co-authored by Copilot
parent 896608c49c
commit 1f3c3084cb
+1 -1
View File
@@ -78,5 +78,5 @@ echo "INFO: Installed ${yq_installed_version} in ${bin_path}"
# Ensure yq is in PATH for subsequent steps # Ensure yq is in PATH for subsequent steps
if [[ -n "${GITHUB_PATH:-}" ]]; then if [[ -n "${GITHUB_PATH:-}" ]]; then
"$(dirname "${bin_path}")" >> "${GITHUB_PATH}" dirname "${bin_path}" >> "${GITHUB_PATH}"
fi fi