From 32aca1840c9673fc408a5f79485f6b55ee5b6031 Mon Sep 17 00:00:00 2001 From: Itay Grudev Date: Wed, 20 Mar 2024 23:21:38 +0200 Subject: [PATCH] Making sure krew is available for the KUTTL install step Signed-off-by: Itay Grudev --- .github/actions/setup-kuttl/action.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/actions/setup-kuttl/action.yml b/.github/actions/setup-kuttl/action.yml index fce8021c6..6cca05feb 100644 --- a/.github/actions/setup-kuttl/action.yml +++ b/.github/actions/setup-kuttl/action.yml @@ -21,11 +21,15 @@ runs: curl -fsSLO "https://github.com/kubernetes-sigs/krew/releases/latest/download/${KREW}.tar.gz" tar zxvf "${KREW}.tar.gz" ./"${KREW}" install krew + export PATH="${KREW_ROOT:-$HOME/.krew}/bin:$PATH" echo "path=${KREW_ROOT:-$HOME/.krew}/bin/kubectl-krew" >> "$GITHUB_OUTPUT" - id: kuttl name: Install KUTTL shell: bash + env: + KREW_PATH: ${{needs.krew.outputs.path}} run: | + export PATH="$(dirname $KREW_PATH):$PATH" kubectl krew install kuttl echo "path=$(which kubectl-kuttl)" >> "$GITHUB_OUTPUT"