4
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-11-07 04:56:56 +00:00

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
This commit is contained in:
David Gamero 2025-07-23 11:07:31 -04:00 committed by GitHub
parent 378ae69bda
commit a10a5247d8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -76,7 +76,8 @@ jobs:
--repo helm/helm \ --repo helm/helm \
--exclude-drafts \ --exclude-drafts \
--exclude-pre-releases \ --exclude-pre-releases \
--limit 1 | awk '{print $4}') --json name,isLatest \
--jq '.[] | select(.isLatest)|.name' | awk '{print $2}')
if [[ $(helm version) != *$HELM_LATEST* ]]; then if [[ $(helm version) != *$HELM_LATEST* ]]; then
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST" echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST"