Skip to content

Commit 0b94440

Browse files
committed
Add line breaks to workflow:validate task commands
This makes it easier to understand the structure of long commands.
1 parent 9341b19 commit 0b94440

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

Taskfile.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -340,8 +340,16 @@ 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+
- |
344+
wget \
345+
--output-document="{{.WORKFLOW_SCHEMA_PATH}}" \
346+
{{.WORKFLOW_SCHEMA_URL}}
347+
- |
348+
npx \
349+
ajv-cli validate \
350+
--strict=false \
351+
-s "{{.WORKFLOW_SCHEMA_PATH}}" \
352+
-d "{{.WORKFLOWS_DATA_PATH}}"
345353
346354
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-general-formatting-task/Taskfile.yml
347355
general:check-formatting:

0 commit comments

Comments
 (0)