Update helm version retrieval to use JSON output for latest version

This commit is contained in:
David Gamero
2025-07-22 19:37:51 +00:00
committed by GitHub
parent 378ae69bda
commit b375d008a1

View File

@ -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"