From a10a5247d8e840d5e622e4e00cfc8b6103a9cafa Mon Sep 17 00:00:00 2001 From: David Gamero Date: Wed, 23 Jul 2025 11:07:31 -0400 Subject: [PATCH] Update helm version retrieval to use JSON output for latest version (#203) * Update helm version retrieval to use JSON output for latest version * Fix helm latest version retrieval command syntax --- .github/workflows/integration-tests.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 9392612..8b812db 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -76,7 +76,8 @@ jobs: --repo helm/helm \ --exclude-drafts \ --exclude-pre-releases \ - --limit 1 | awk '{print $4}') + --json name,isLatest \ + --jq '.[] | select(.isLatest)|.name' | awk '{print $2}') if [[ $(helm version) != *$HELM_LATEST* ]]; then echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST"