mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-03 18:46:32 +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:
3
.github/workflows/integration-tests.yml
vendored
3
.github/workflows/integration-tests.yml
vendored
@ -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"
|
||||||
|
Reference in New Issue
Block a user