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
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:
+1
-1
@@ -78,5 +78,5 @@ echo "INFO: Installed ${yq_installed_version} in ${bin_path}"
|
||||
|
||||
# Ensure yq is in PATH for subsequent steps
|
||||
if [[ -n "${GITHUB_PATH:-}" ]]; then
|
||||
"$(dirname "${bin_path}")" >> "${GITHUB_PATH}"
|
||||
dirname "${bin_path}" >> "${GITHUB_PATH}"
|
||||
fi
|
||||
Reference in New Issue
Block a user