Compare commits

...

4 Commits

Author SHA1 Message Date
rgsubh
59d5057182 Merge branch 'releases/v1' into docfix 2020-05-14 10:08:41 +05:30
Raghavendra S
d56b96d256 review comments fix 2020-05-13 09:00:19 +05:30
Raghavendra S
5801d81e70 append v to version incase it does not already include 2020-05-11 13:45:17 +05:30
Raghavendra S
1a980ffbb5 Chnaged the documentation to sepcify v before 'version' 2020-05-07 13:58:41 +05:30
3 changed files with 6 additions and 1 deletions

View File

@@ -1,7 +1,7 @@
# Setup Helm
#### Install a specific version of helm binary on the runner.
Acceptable values are latest or any semantic version string like 1.15.0. Use this action in workflow to define which version of helm will be used.
Acceptable values are latest or any semantic version string like v2.16.7 Use this action in workflow to define which version of helm will be used.
```yaml
- uses: azure/setup-helm@v1

View File

@@ -130,6 +130,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))) {

View File

@@ -119,6 +119,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);