Get helm version on helm-release from the Makefile.
@@ -16,10 +16,16 @@ jobs:
git config user.name "$GITHUB_ACTOR"
git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
+ - name: "Get Helm version"
+ id: helm_version
+ run: |
+ HELM_VERSION=$(awk -F= '/^HELM_VERSION/ { print $2 }' Makefile)
+ echo "::set-output name=value::${HELM_VERSION}"
+
- name: "Install Helm"
uses: azure/setup-helm@v3
with:
- version: "v3.8.0"
+ version: "v${{ steps.helm_version.value }}"
# Add depending repository for helm to avoid the error below.
# `Error: no repository definition for https://charts.jetstack.io`
