Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion action.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,8 @@ def load_chart(specs):

def run_helm(cmd, params=None, cwd=None, exit=True, **env):
params = params or []
helm_cmd = " ".join(["helm", cmd] + params)
helm_bin = os.environ.get("HELM_BIN", "helm")
helm_cmd = " ".join([helm_bin, cmd] + params)
proc = subprocess.Popen(
shlex.split(helm_cmd),
shell=False,
Expand Down
2 changes: 2 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ runs:
run: |
set -eou pipefail

export HELM_BIN=$(command -v helm)

export GHINPUT_CHART_VERSION="${{ inputs.chart-version }}"
export GHINPUT_CHART="${{ inputs.chart }}"
export GHINPUT_DRY_RUN="${{ inputs.dry-run }}"
Expand Down