mirror of
https://github.com/Azure/setup-helm.git
synced 2025-11-07 21:16:57 +00:00
Adding warning when a stable release is not found
This commit is contained in:
parent
91f91ae6d6
commit
5c4b7c696a
1 changed files with 3 additions and 2 deletions
|
|
@ -105,11 +105,12 @@ async function getLatestHelmVersionFor(type) {
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
core.warning(util.format("Error while fetching the latest Helm %s release. Error: %s. Using defaul Helm version %s.", type, err.toString(), stableHelmVersion));
|
core.warning(util.format("Error while fetching the latest Helm %s release. Error: %s. Using defaul Helm version %s.", type, err.toString(), stableHelmVersion));
|
||||||
}
|
}
|
||||||
|
core.warning(util.format("Could not find stable release for Helm %s. Using defaul Helm version %s.", type, stableHelmVersion));
|
||||||
return stableHelmVersion;
|
return stableHelmVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
// isValidVersion checks if verison matches the specified type and is a stable release
|
// isValidVersion checks if verison matches the specified type and is a stable release
|
||||||
function isValidVersion(version, type) {
|
function isValidVersion(version, type): boolean {
|
||||||
if (!version.startsWith(type))
|
if (!version.startsWith(type))
|
||||||
return false;
|
return false;
|
||||||
return version.indexOf('rc') == -1
|
return version.indexOf('rc') == -1
|
||||||
|
|
@ -137,7 +138,7 @@ async function run() {
|
||||||
version = 'v' + version;
|
version = 'v' + version;
|
||||||
}
|
}
|
||||||
|
|
||||||
core.debug(util.format("Downloading %s",version));
|
core.debug(util.format("Downloading %s", version));
|
||||||
let cachedPath = await downloadHelm(version);
|
let cachedPath = await downloadHelm(version);
|
||||||
|
|
||||||
try {
|
try {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue