fix(ci): install yq in runner temp bin
This commit is contained in:
@@ -360,17 +360,20 @@ jobs:
|
||||
|
||||
- name: 安装 yq(用于更新 Helm values)
|
||||
run: |
|
||||
BIN_DIR="${RUNNER_TEMP}/bin"
|
||||
mkdir -p "${BIN_DIR}"
|
||||
if ! command -v yq &> /dev/null; then
|
||||
echo "📦 安装 yq..."
|
||||
if command -v curl &> /dev/null; then
|
||||
curl -fsSL -o /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
|
||||
curl -fsSL -o "${BIN_DIR}/yq" https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
|
||||
elif command -v wget &> /dev/null; then
|
||||
wget -qO /usr/local/bin/yq https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
|
||||
wget -qO "${BIN_DIR}/yq" https://github.com/mikefarah/yq/releases/latest/download/yq_linux_amd64
|
||||
else
|
||||
echo "❌ neither curl nor wget is available"
|
||||
exit 1
|
||||
fi
|
||||
chmod +x /usr/local/bin/yq
|
||||
chmod +x "${BIN_DIR}/yq"
|
||||
echo "${BIN_DIR}" >> "${GITHUB_PATH}"
|
||||
fi
|
||||
yq --version
|
||||
|
||||
|
||||
Reference in New Issue
Block a user