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

Changed the documentation to specify v before 'version' and code changes to append 'v' if it not provided in version (#11) (#15)

* Chnaged the documentation to sepcify v before 'version'

* append v to version incase it does not already include

* review comments fix
This commit is contained in:
rgsubh 2020-05-14 12:16:24 +05:30 committed by GitHub
parent b1c4524a5f
commit 91b7d21636
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 1 deletions

View file

@ -120,6 +120,8 @@ async function run() {
let version = core.getInput('version', { 'required': true });
if (version.toLocaleLowerCase() === 'latest') {
version = await getStableHelmVersion();
} else if (!version.toLocaleLowerCase().startsWith('v')) {
version = 'v' + version;
}
let cachedPath = await downloadHelm(version);