File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -87,9 +87,16 @@ tasks:
87
87
DEPENDABOT_SCHEMA_PATH :
88
88
sh : mktemp -t dependabot-schema-XXXXXXXXXX.json
89
89
DEPENDABOT_DATA_PATH : " **/dependabot.yml"
90
+ # Source: https://github.com/DavidAnson/markdownlint/blob/main/schema/markdownlint-config-schema.json
91
+ MARKDOWNLINT_SCHEMA_URL : https://raw.githubusercontent.com/DavidAnson/markdownlint/main/schema/markdownlint-config-schema.json
92
+ MARKDOWNLINT_SCHEMA_PATH :
93
+ sh : mktemp -t markdownlint-schema-XXXXXXXXXX.json
94
+ MARKDOWNLINT_DATA_PATH : " **/.markdownlint.{yml,yaml}"
90
95
cmds :
91
96
- wget --quiet --output-document="{{.DEPENDABOT_SCHEMA_PATH}}" {{.DEPENDABOT_SCHEMA_URL}}
92
97
- npx ajv-cli@{{.AJV_CLI_VERSION}} validate -s "{{.DEPENDABOT_SCHEMA_PATH}}" -d "{{.DEPENDABOT_DATA_PATH}}"
98
+ - wget --quiet --output-document="{{.MARKDOWNLINT_SCHEMA_PATH}}" {{.MARKDOWNLINT_SCHEMA_URL}}
99
+ - npx ajv-cli validate --allow-union-types -s "{{.MARKDOWNLINT_SCHEMA_PATH}}" -d "{{.MARKDOWNLINT_DATA_PATH}}"
93
100
94
101
# Source: https://github.com/arduino/tooling-project-assets/blob/main/workflow-templates/assets/check-markdown-task/Taskfile.yml
95
102
markdown:lint :
You can’t perform that action at this time.
0 commit comments