mirror of
https://github.com/Azure/setup-helm.git
synced 2025-12-27 09:45:45 +00:00
Adding warning when a stable release is not found
This commit is contained in:
@@ -105,11 +105,12 @@ async function getLatestHelmVersionFor(type) {
|
||||
} 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("Could not find stable release for Helm %s. Using defaul Helm version %s.", type, stableHelmVersion));
|
||||
return stableHelmVersion;
|
||||
}
|
||||
|
||||
// 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))
|
||||
return false;
|
||||
return version.indexOf('rc') == -1
|
||||
|
||||
Reference in New Issue
Block a user