Skip to content

Commit 9341b19

Browse files
committed
Quote paths in workflows:validate task
This will prevent breakage in the event the path contains spaces.
1 parent e9f4d8b commit 9341b19

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Taskfile.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,8 @@ tasks:
340340
sh: mktemp -t workflow-schema-XXXXXXXXXX.json
341341
WORKFLOWS_DATA_PATH: "./.github/workflows/*.{yml,yaml}"
342342
cmds:
343-
- wget --output-document={{.WORKFLOW_SCHEMA_PATH}} {{.WORKFLOW_SCHEMA_URL}}
344-
- npx ajv-cli validate --strict=false -s {{.WORKFLOW_SCHEMA_PATH}} -d "{{.WORKFLOWS_DATA_PATH}}"
343+
- wget --output-document="{{.WORKFLOW_SCHEMA_PATH}}" {{.WORKFLOW_SCHEMA_URL}}
344+
- npx ajv-cli validate --strict=false -s "{{.WORKFLOW_SCHEMA_PATH}}" -d "{{.WORKFLOWS_DATA_PATH}}"
345345

346346
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
347347
general:check-formatting:

0 commit comments

Comments
 (0)