Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit a10a524

Browse files
authored
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
1 parent 378ae69 commit a10a524

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/integration-tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ jobs:
7676
--repo helm/helm \
7777
--exclude-drafts \
7878
--exclude-pre-releases \
79-
--limit 1 | awk '{print $4}')
79+
--json name,isLatest \
80+
--jq '.[] | select(.isLatest)|.name' | awk '{print $2}')
8081
8182
if [[ $(helm version) != *$HELM_LATEST* ]]; then
8283
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST"

0 commit comments

Comments
 (0)