10
0
Fork 0
mirror of https://github.com/Azure/setup-helm.git synced 2026-04-14 10:34:47 +00:00

Edited comment on isValidVersion

This commit is contained in:
Asa Gayle 2022-01-25 16:14:23 -05:00
parent f89e61b2b4
commit 700a7c0faa
2 changed files with 6 additions and 6 deletions

View file

@ -84,8 +84,8 @@ function downloadHelm(version) {
});
}
exports.downloadHelm = downloadHelm;
// Downloads the helm release JSON and parses all the recent versions of helm from it.
// Defaults to sending stable helm version if none are valid.
// Downloads the helm releases JSON and parses all the recent versions of helm from it.
// Defaults to sending stable helm version if none are valid or if it fails
function getLatestHelmVersion() {
return __awaiter(this, void 0, void 0, function* () {
let helmJSONPath = yield toolCache.downloadTool(helmAllReleasesUrl);
@ -105,7 +105,7 @@ function getLatestHelmVersion() {
});
}
exports.getLatestHelmVersion = getLatestHelmVersion;
// isValidVersion checks if verison matches the specified type and is a stable release
// isValidVersion checks if verison is a stable release
function isValidVersion(version) {
return version.indexOf('rc') == -1;
}