Skip to content

Commit

Permalink
v0.6
Browse files Browse the repository at this point in the history
  • Loading branch information
Ledarath committed May 27, 2024
1 parent ba3ea66 commit 814599c
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 10 deletions.
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ inputs:
values:
description: 'Values'
required: false
values_files:
description:
'Additional value files to apply to the helm chart. Expects JSON encoded
array or a string.'
required: false

# Define your outputs here.
#outputs:
Expand Down
5 changes: 1 addition & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 2 additions & 5 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,7 @@ import Mustache from 'mustache'
*/
export async function run(): Promise<void> {
const context = github.context
const valueFiles = getValueFiles([
'./.github/config/pr.yml',
'./.github/config/_common.yml'
])
const valueFiles = getValueFiles(getInput('value_files'))
const secrets = getSecrets(core.getInput('secrets'))
const values = getValues(getInput('values'))

Expand Down Expand Up @@ -73,7 +70,7 @@ function getSecrets(secrets: string) {
return secrets
}

function getValueFiles(files: string[]) {
function getValueFiles(files: string[] | string) {

Check failure on line 73 in src/main.ts

View workflow job for this annotation

GitHub Actions / Lint Codebase

Missing return type on function

Check failure on line 73 in src/main.ts

View workflow job for this annotation

GitHub Actions / TypeScript Tests

Missing return type on function
let fileList

if (typeof files === 'string') {
Expand Down

0 comments on commit 814599c

Please sign in to comment.