Closed dennybaa closed 4 years ago
@unguiculus Hey, actually it's not wrong. I usually do so myself in fact. But if you try passing lint --config hello-world.yaml
unfortunately it wont work since it's passed down from yaml as single string. So in fact setting options doesn't work now.
Have a look at this one https://github.com/dysnix/charts/runs/543495558?check_suite_focus=true
Run chart-testing (lint) with my work around (which is not really proper) but it picks the args, while charts-testing (install) using the current script does not.
Actually it's better adding something like python shlex.split("this is my\ string that --has=arguments -or=something")
into the main.js
. So i think the real problem - is the way it's spawned from nodejs.
You should configure the action as follow:
with:
command: install
config: .github/conf/chart-testing.yaml
Oh man, I should've read the the GitHub actions docs) @unguiculus thank you!
What makes you think this is wrong? The code works as expected. It's good practice to quote variables. Actually, shellcheck will complain if you don't. See https://github.com/koalaman/shellcheck/wiki/SC2068.