File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed
actions/helm/generate-docs Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -187,16 +187,21 @@ runs:
187187 WORKING_DIRECTORY : ${{ steps.prepare-variables.outputs.working-directory }}
188188 CACHE_PATH : ${{ steps.prepare-variables.outputs.prettier-cache-path }}
189189 FILES_PATTERN : ${{ steps.prepare-variables.outputs.files-pattern }}
190- VALUES_FILE : ${{ steps.prepare-variables.outputs.values-file || '' }}
190+ VALUES_FILE : ${{ steps.prepare-variables.outputs.values-file }}
191191 with :
192192 script : |
193- await exec.exec('npx', [
193+ const args = [
194194 'prettier',
195195 '--cache-location', process.env.CACHE_PATH,
196196 '--write',
197197 process.env.FILES_PATTERN,
198- process.env.VALUES_FILE,
199- ], {
198+ ];
199+
200+ if (process.env.VALUES_FILE) {
201+ args.push(process.env.VALUES_FILE);
202+ }
203+
204+ await exec.exec('npx', args, {
200205 cwd: process.env.WORKING_DIRECTORY,
201206 });
202207
You can’t perform that action at this time.
0 commit comments