mirror of
https://github.com/Azure/setup-helm.git
synced 2025-09-07 20:46:32 +00:00
review comments fix
This commit is contained in:
@ -1,12 +1,12 @@
|
|||||||
# Setup Helm
|
# Setup Helm
|
||||||
#### Install a specific version of helm binary on the runner.
|
#### 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
|
```yaml
|
||||||
- uses: azure/setup-helm@v1
|
- uses: azure/setup-helm@v1
|
||||||
with:
|
with:
|
||||||
version: v'<version>' # default is latest stable
|
version: '<version>' # default is latest stable
|
||||||
id: install
|
id: install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -37,8 +37,7 @@ function getHelmDownloadURL(version: string): string {
|
|||||||
async function getStableHelmVersion(): Promise<string> {
|
async function getStableHelmVersion(): Promise<string> {
|
||||||
return toolCache.downloadTool(helmLatestReleaseUrl).then((downloadPath) => {
|
return toolCache.downloadTool(helmLatestReleaseUrl).then((downloadPath) => {
|
||||||
const response = JSON.parse(fs.readFileSync(downloadPath, 'utf8').toString().trim());
|
const response = JSON.parse(fs.readFileSync(downloadPath, 'utf8').toString().trim());
|
||||||
if (!response.tag_name)
|
if (!response.tag_name) {
|
||||||
{
|
|
||||||
return stableHelmVersion;
|
return stableHelmVersion;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -60,8 +59,7 @@ var walkSync = function(dir, filelist, fileToFind) {
|
|||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
core.debug(file);
|
core.debug(file);
|
||||||
if(file == fileToFind)
|
if (file == fileToFind) {
|
||||||
{
|
|
||||||
filelist.push(path.join(dir, file));
|
filelist.push(path.join(dir, file));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user