Files

16 lines
522 B
Bash
Raw Permalink Normal View History

2026-08-28 23:22:26 +02:00
#!/usr/bin/env bash
set -euo pipefail
: "${HELM_VERSION:?HELM_VERSION must be set, for example v4.2.2}"
: "${RUNNER_TEMP:?RUNNER_TEMP must be set}"
archive="helm-${HELM_VERSION}-linux-amd64.tar.gz"
curl --fail --silent --show-error --location \
--output "${RUNNER_TEMP}/${archive}" \
"https://get.helm.sh/${archive}"
tar --extract --gzip --file "${RUNNER_TEMP}/${archive}" \
--directory "${RUNNER_TEMP}" linux-amd64/helm
mv "${RUNNER_TEMP}/linux-amd64/helm" "${RUNNER_TEMP}/helm"
chmod 0700 "${RUNNER_TEMP}/helm"