-
Notifications
You must be signed in to change notification settings - Fork 221
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
value-files with multiple files: JSON string of array? #19
Comments
@kierenj ya it's a bit tricky to pass arguments with actions, I wish it would just allow full yaml syntax and pass that along somehow to the action. The code that does this is here: https://github.com/deliverybot/helm/blob/master/index.js#L81-L97 I believe what's happening is you have a trailing slash in the array which is causing it to be invalid JSON, if it's invalid the action just tries to interpret it as a string. If you remove the trailing slash everything should work :) |
This is what I'm doing: - uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: '["values.yaml", "values.production.yaml"]' You shouldn't indent the values. If you really want to (eg. for readability) I believe this is valid YAML: - uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: >-
[
"values.yaml",
"values.production.yaml",
] Here is helpful information on how to deal with strings that contain multiple new lines: https://yaml-multiline.info/ |
Thanks @riker09 - I think the trailing slash would still cause an error. |
What trailing slash are we talking about? I can spot a trailing comma which may cause an error. |
Ya my bad I actually meant comma |
So in conclusion a perfectly valid configuration would look like this: - uses: deliverybot/helm@v1
with:
helm: helm3
release: foobar
namespace: default
chart: path/to/chart
dry-run: true
value-files: >-
[
"values.yaml",
"values.production.yaml"
]
|
There should be a clear example in the README. I've spent hours trying to figure out this problem with this action. |
@nodox feel free to contribute an example, will be happy to merge it. |
I'm trying to specify multiple value files. I've tried a JSON array as a string, as suggested:
However, the process fails with an error opening a file with the name of the entire JSON string.
Would it be possible to provide an example to demonstrate how this should work?
The text was updated successfully, but these errors were encountered: