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 @@ -91,9 +91,18 @@ tasks:
91
91
DEPENDABOT_SCHEMA_PATH :
92
92
sh : mktemp -t dependabot-schema-XXXXXXXXXX.json
93
93
DEPENDABOT_DATA_PATH : " **/dependabot.yml"
94
+ # Source: https://github.com/DavidAnson/markdownlint/blob/main/schema/markdownlint-config-schema.json
95
+ # Note: temporarily using schema from `next` branch due to bug in the one on `main`.
96
+ # (https://github.com/DavidAnson/markdownlint/pull/406).
97
+ MARKDOWNLINT_SCHEMA_URL : https://raw.githubusercontent.com/DavidAnson/markdownlint/next/schema/markdownlint-config-schema.json
98
+ MARKDOWNLINT_SCHEMA_PATH :
99
+ sh : mktemp -t markdownlint-schema-XXXXXXXXXX.json
100
+ MARKDOWNLINT_DATA_PATH : " **/.markdownlint.{yml,yaml}"
94
101
cmds :
95
102
- wget --quiet --output-document="{{.DEPENDABOT_SCHEMA_PATH}}" {{.DEPENDABOT_SCHEMA_URL}}
96
103
- npx ajv-cli@{{.AJV_CLI_VERSION}} validate -s "{{.DEPENDABOT_SCHEMA_PATH}}" -d "{{.DEPENDABOT_DATA_PATH}}"
104
+ - wget --quiet --output-document="{{.MARKDOWNLINT_SCHEMA_PATH}}" {{.MARKDOWNLINT_SCHEMA_URL}}
105
+ - npx ajv-cli validate --allow-union-types -s "{{.MARKDOWNLINT_SCHEMA_PATH}}" -d "{{.MARKDOWNLINT_DATA_PATH}}"
97
106
98
107
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
99
108
markdown:lint :
You can’t perform that action at this time.
0 commit comments