review comments fix

This commit is contained in:
Raghavendra S
2020-05-13 09:00:19 +05:30
parent 5801d81e70
commit d56b96d256
2 changed files with 22 additions and 24 deletions

View File

@ -1,12 +1,12 @@
# 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
with:
version: v'<version>' # default is latest stable
version: '<version>' # default is latest stable
id: install
```

View File

@ -37,8 +37,7 @@ function getHelmDownloadURL(version: string): string {
async function getStableHelmVersion(): Promise<string> {
return toolCache.downloadTool(helmLatestReleaseUrl).then((downloadPath) => {
const response = JSON.parse(fs.readFileSync(downloadPath, 'utf8').toString().trim());
if (!response.tag_name)
{
if (!response.tag_name) {
return stableHelmVersion;
}
@ -60,8 +59,7 @@ var walkSync = function(dir, filelist, fileToFind) {
}
else {
core.debug(file);
if(file == fileToFind)
{
if (file == fileToFind) {
filelist.push(path.join(dir, file));
}
}