Skip to content

Commit 814599c

Browse files
committed
v0.6
1 parent ba3ea66 commit 814599c

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

action.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ inputs:
1515
values:
1616
description: 'Values'
1717
required: false
18+
values_files:
19+
description:
20+
'Additional value files to apply to the helm chart. Expects JSON encoded
21+
array or a string.'
22+
required: false
1823

1924
# Define your outputs here.
2025
#outputs:

dist/index.js

Lines changed: 1 addition & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/main.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,7 @@ import Mustache from 'mustache'
1010
*/
1111
export async function run(): Promise<void> {
1212
const context = github.context
13-
const valueFiles = getValueFiles([
14-
'./.github/config/pr.yml',
15-
'./.github/config/_common.yml'
16-
])
13+
const valueFiles = getValueFiles(getInput('value_files'))
1714
const secrets = getSecrets(core.getInput('secrets'))
1815
const values = getValues(getInput('values'))
1916

@@ -73,7 +70,7 @@ function getSecrets(secrets: string) {
7370
return secrets
7471
}
7572

76-
function getValueFiles(files: string[]) {
73+
function getValueFiles(files: string[] | string) {
7774
let fileList
7875

7976
if (typeof files === 'string') {

0 commit comments

Comments
 (0)