Skip to content

Commit 3bb59c8

Browse files
author
Vlad Volkov
committed
Updated versions
1 parent 6fd41fd commit 3bb59c8

2 files changed

Lines changed: 14 additions & 9 deletions

File tree

action.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,23 @@ branding:
66
color: blue
77
inputs:
88
helm-version:
9-
default: 3.7.0
9+
default: 3.7.1
1010
description: Helm version
1111
required: false
1212
helm:
1313
default: ''
1414
description: Helm command arguments
1515
required: false
16+
quiet:
17+
default: 'true'
18+
description: Disabled output on plugin installation & download actions
19+
required: false
1620
repository-config:
1721
default: repositories.yaml
1822
description: Path to the file containing Helm repository names and URLs
1923
required: false
2024
helmfile-version:
21-
default: 0.141.0
25+
default: 0.142.0
2226
description: Helmfile version
2327
required: false
2428
helmfile:

src/index.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5868,8 +5868,8 @@ function getArgsFromInput() {
58685868
return key === HelmfileArgs.SELECTORS
58695869
? (0, core_1.getInput)(HelmfileArgs.SELECTORS)
58705870
.split(',')
5871-
.map(function (it) { return "--" + key + "=" + it; })
5872-
: ["--" + key + "=" + (0, core_1.getInput)(key)];
5871+
.map(function (it) { return "--".concat(key, "=").concat(it); })
5872+
: ["--".concat(key, "=").concat((0, core_1.getInput)(key))];
58735873
})
58745874
.flat(1);
58755875
}
@@ -5883,22 +5883,23 @@ var plugins = new Map()
58835883
.set('secrets', new URL('https://github.com/jkroepke/helm-secrets'));
58845884
function run() {
58855885
return (0, tslib_1.__awaiter)(this, void 0, void 0, function () {
5886-
var helmVersion, helmfileVersion, repositoryConfig, helmfileConfig, helmUrl, helmfileUrl, repositoryConfigPath, helmfileConfigPath, pluginUrls, repositoryArgs, _i, pluginUrls_1, url, globalArgs, _a, _b, error_1;
5886+
var helmVersion, helmfileVersion, repositoryConfig, helmfileConfig, helmUrl, helmfileUrl, repositoryConfigPath, helmfileConfigPath, pluginUrls, silent, repositoryArgs, _i, pluginUrls_1, url, globalArgs, _a, _b, error_1;
58875887
return (0, tslib_1.__generator)(this, function (_c) {
58885888
switch (_c.label) {
58895889
case 0:
58905890
helmVersion = (0, core_1.getInput)('helm-version');
58915891
helmfileVersion = (0, core_1.getInput)('helmfile-version');
58925892
repositoryConfig = (0, core_1.getInput)('repository-config');
58935893
helmfileConfig = (0, core_1.getInput)('helmfile-config');
5894-
helmUrl = "https://get.helm.sh/helm-v" + helmVersion + "-" + platform + "-amd64.tar.gz";
5895-
helmfileUrl = "https://github.com/roboll/helmfile/releases/download/v" + helmfileVersion + "/helmfile_" + platform + "_amd64";
5894+
helmUrl = "https://get.helm.sh/helm-v".concat(helmVersion, "-").concat(platform, "-amd64.tar.gz");
5895+
helmfileUrl = "https://github.com/roboll/helmfile/releases/download/v".concat(helmfileVersion, "/helmfile_").concat(platform, "_amd64");
58965896
repositoryConfigPath = (0, path_1.join)(workspaceDir, repositoryConfig);
58975897
helmfileConfigPath = (0, path_1.join)(workspaceDir, helmfileConfig);
58985898
pluginUrls = (0, core_1.getInput)('plugins')
58995899
.split(',')
59005900
.filter(function (name) { return plugins.has(name); })
59015901
.map(function (name) { return plugins.get(name); });
5902+
silent = Boolean((0, core_1.getInput)('quiet'));
59025903
_c.label = 1;
59035904
case 1:
59045905
_c.trys.push([1, 17, , 18]);
@@ -5917,7 +5918,7 @@ function run() {
59175918
case 5:
59185919
if (!(_i < pluginUrls_1.length)) return [3, 8];
59195920
url = pluginUrls_1[_i];
5920-
return [4, (0, exec_1.exec)('helm', ['plugin', 'install', url.toString()])["catch"](core_1.warning)];
5921+
return [4, (0, exec_1.exec)('helm', ['plugin', 'install', url.toString()], { silent: silent })["catch"](core_1.warning)];
59215922
case 6:
59225923
_c.sent();
59235924
_c.label = 7;
@@ -5928,7 +5929,7 @@ function run() {
59285929
case 9:
59295930
_c.sent();
59305931
if (!(repositoryArgs.length > 0)) return [3, 11];
5931-
return [4, (0, exec_1.exec)('helm', ['repo', 'update'].concat(repositoryArgs))];
5932+
return [4, (0, exec_1.exec)('helm', ['repo', 'update'].concat(repositoryArgs), { silent: silent })];
59325933
case 10:
59335934
_c.sent();
59345935
_c.label = 11;

0 commit comments

Comments
 (0)