mirror of
https://github.com/Azure/setup-helm.git
synced 2025-12-20 22:35:45 +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:
7
.github/workflows/integration-tests.yml
vendored
7
.github/workflows/integration-tests.yml
vendored
@@ -80,12 +80,7 @@ jobs:
|
||||
env:
|
||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
run: |
|
||||
HELM_LATEST=$(gh release list \
|
||||
--repo helm/helm \
|
||||
--exclude-drafts \
|
||||
--exclude-pre-releases \
|
||||
--json name,isLatest \
|
||||
--jq '.[] | select(.isLatest)|.name' | awk '{print $2}')
|
||||
HELM_LATEST=$(curl -s https://get.helm.sh/helm-latest-version)
|
||||
|
||||
if [[ $(helm version) != *$HELM_LATEST* ]]; then
|
||||
echo "HELM VERSION INCORRECT: HELM VERSION DOES NOT CONTAIN $HELM_LATEST"
|
||||
|
||||
Reference in New Issue
Block a user