5
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2025-12-27 02:58:17 +00:00

Update Helm version retrieval method in CI workflow

Replaced gh command with curl to fetch latest Helm version.
This commit is contained in:
Suneha Bose 2025-11-18 11:21:12 -08:00 committed by GitHub
parent 95eab887c3
commit ce1e940a75
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -80,12 +80,7 @@ jobs:
env: env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: | run: |
HELM_LATEST=$(gh release list \ HELM_LATEST=$(curl -s https://get.helm.sh/helm-latest-version)
--repo helm/helm \
--exclude-drafts \
--exclude-pre-releases \
--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"