Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Tasks/HelmInstallerV0/src/helminstaller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,8 @@ async function getStableHelmVersion(): Promise<string> {
if (response && response.tag_name) {
let currentHelmVerison = semver.clean(response.tag_name.toString());
if (currentHelmVerison) {
if (currentHelmVerison.toString().indexOf('rc') == -1 && semver.gt(currentHelmVerison, latestHelmVersion)) {
let currentHelmPrerelease = semver.prerelease(currentHelmVerison.toString()) || [];
if (['rc', 'beta', 'alpha'].indexOf(currentHelmPrerelease[0]) == -1 && semver.gt(currentHelmVerison, latestHelmVersion)) {
//If current helm version is not a pre release and is greater than latest helm version
latestHelmVersion = currentHelmVerison;
}
Expand Down
6 changes: 3 additions & 3 deletions Tasks/HelmInstallerV0/task.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 262,
"Patch": 3
"Minor": 263,
"Patch": 0
},
"demands": [],
"satisfies": [
Expand Down Expand Up @@ -102,4 +102,4 @@
"HelmLatestNotKnown": "Cannot get the latest Helm info from %s. Error %s. Using default Helm version %s.",
"VerifyHelmInstallation": "Verifying helm installation..."
}
}
}
6 changes: 3 additions & 3 deletions Tasks/HelmInstallerV0/task.loc.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@
"author": "Microsoft Corporation",
"version": {
"Major": 0,
"Minor": 262,
"Patch": 3
"Minor": 263,
"Patch": 0
},
"demands": [],
"satisfies": [
Expand Down Expand Up @@ -102,4 +102,4 @@
"HelmLatestNotKnown": "ms-resource:loc.messages.HelmLatestNotKnown",
"VerifyHelmInstallation": "ms-resource:loc.messages.VerifyHelmInstallation"
}
}
}