mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-10 05:56:31 +00:00
append v to version incase it does not already include
This commit is contained in:
@ -118,6 +118,9 @@ function run() {
|
||||
if (version.toLocaleLowerCase() === 'latest') {
|
||||
version = yield getStableHelmVersion();
|
||||
}
|
||||
else if (!version.toLocaleLowerCase().startsWith('v')) {
|
||||
version = 'v' + version;
|
||||
}
|
||||
let cachedPath = yield downloadHelm(version);
|
||||
try {
|
||||
if (!process.env['PATH'].startsWith(path.dirname(cachedPath))) {
|
||||
|
Reference in New Issue
Block a user