File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -94,10 +94,19 @@ tasks:
94
94
DEPENDABOT_DATA_PATH : " **/dependabot.yml"
95
95
LABEL_CONFIG_SCHEMA_PATH : workflow-templates/assets/sync-labels/arduino-tooling-gh-label-configuration-schema.json
96
96
LABEL_CONFIG_DATA_PATH : " workflow-templates/assets/sync-labels/*.{yml,yaml}"
97
+ # Source: https://github.com/DavidAnson/markdownlint/blob/main/schema/markdownlint-config-schema.json
98
+ # Note: temporarily using schema from `next` branch due to bug in the one on `main`.
99
+ # (https://github.com/DavidAnson/markdownlint/pull/406).
100
+ MARKDOWNLINT_SCHEMA_URL : https://raw.githubusercontent.com/DavidAnson/markdownlint/next/schema/markdownlint-config-schema.json
101
+ MARKDOWNLINT_SCHEMA_PATH :
102
+ sh : mktemp -t markdownlint-schema-XXXXXXXXXX.json
103
+ MARKDOWNLINT_DATA_PATH : " **/.markdownlint.{yml,yaml}"
97
104
cmds :
98
105
- wget --quiet --output-document="{{.DEPENDABOT_SCHEMA_PATH}}" {{.DEPENDABOT_SCHEMA_URL}}
99
106
- npx ajv-cli@{{.AJV_CLI_VERSION}} validate -s "{{.DEPENDABOT_SCHEMA_PATH}}" -d "{{.DEPENDABOT_DATA_PATH}}"
100
107
- npx ajv-cli validate -s "{{.LABEL_CONFIG_SCHEMA_PATH}}" -d "{{.LABEL_CONFIG_DATA_PATH}}"
108
+ - wget --quiet --output-document="{{.MARKDOWNLINT_SCHEMA_PATH}}" {{.MARKDOWNLINT_SCHEMA_URL}}
109
+ - npx ajv-cli validate --allow-union-types -s "{{.MARKDOWNLINT_SCHEMA_PATH}}" -d "{{.MARKDOWNLINT_DATA_PATH}}"
101
110
102
111
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
103
112
markdown:lint :
You can’t perform that action at this time.
0 commit comments