style: use same logger pattern
Install yq / install-yq (ubuntu-latest-amd64, amd64, linux) (push) Successful in 6s
Install yq / install-yq (ubuntu-latest-arm64, arm64, linux) (push) Successful in 11s
Markdown linter / markdown-link-checker (push) Successful in 23s
Markdown linter / markdown-lint (push) Successful in 34s
Install yq / install-yq (ubuntu-latest-amd64, amd64, linux) (push) Successful in 6s
Install yq / install-yq (ubuntu-latest-arm64, arm64, linux) (push) Successful in 11s
Markdown linter / markdown-link-checker (push) Successful in 23s
Markdown linter / markdown-lint (push) Successful in 34s
This commit is contained in:
+5
-5
@@ -14,7 +14,7 @@ YQ_VERSION="${YQ_VERSION:="${internal_yq_version}"}"
|
|||||||
case "${YQ_OS:-}" in
|
case "${YQ_OS:-}" in
|
||||||
linux*) ;;
|
linux*) ;;
|
||||||
darwin*) ;;
|
darwin*) ;;
|
||||||
*) echo "Unsupported OS: $(uname -s)"; exit 1;;
|
*) echo "ERROR: Unsupported OS: $(uname -s)"; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|
||||||
@@ -22,7 +22,7 @@ esac
|
|||||||
case "${YQ_ARCH:-}" in
|
case "${YQ_ARCH:-}" in
|
||||||
amd64* | x86_64*) YQ_ARCH="amd64" ;;
|
amd64* | x86_64*) YQ_ARCH="amd64" ;;
|
||||||
aarch64 | arm64*) YQ_ARCH="arm64" ;;
|
aarch64 | arm64*) YQ_ARCH="arm64" ;;
|
||||||
*) echo "Unsupported architecture: $(uname -m)"; exit 1;;
|
*) echo "ERROR: Unsupported architecture: $(uname -m)"; exit 1;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
# Build download URL if not explicitly provided
|
# Build download URL if not explicitly provided
|
||||||
@@ -41,7 +41,7 @@ fi
|
|||||||
|
|
||||||
# Download and extract yq binary from .tar.gz
|
# Download and extract yq binary from .tar.gz
|
||||||
if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
||||||
echo "Downloading and extracting yq from ${YQ_DOWNLOAD_URL}..."
|
echo "INFO: Downloading and extracting yq from ${YQ_DOWNLOAD_URL}..."
|
||||||
tmp_dir="$(mktemp -d)"
|
tmp_dir="$(mktemp -d)"
|
||||||
trap 'rm -rf "${tmp_dir}"' EXIT
|
trap 'rm -rf "${tmp_dir}"' EXIT
|
||||||
|
|
||||||
@@ -61,7 +61,7 @@ if [[ "${YQ_DOWNLOAD_URL}" =~ \.tar\.gz$ ]]; then
|
|||||||
|
|
||||||
# Download yq binary directly
|
# Download yq binary directly
|
||||||
else
|
else
|
||||||
echo "Downloading yq from ${YQ_DOWNLOAD_URL}..."
|
echo "INFO: Downloading yq from ${YQ_DOWNLOAD_URL}..."
|
||||||
|
|
||||||
curl \
|
curl \
|
||||||
--fail \
|
--fail \
|
||||||
@@ -74,7 +74,7 @@ fi
|
|||||||
chmod +x "${bin_path}"
|
chmod +x "${bin_path}"
|
||||||
|
|
||||||
yq_installed_version="$("${bin_path}" --version)"
|
yq_installed_version="$("${bin_path}" --version)"
|
||||||
echo "Installed ${yq_installed_version} in ${bin_path}"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user