Skip to content

Commit 1187c17

Browse files
committed
fix(helm/generate-docs): formatting issue
Signed-off-by: Emilien Escalle <[email protected]>
1 parent dfe0853 commit 1187c17

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

actions/helm/generate-docs/action.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)