Skip to content

Commit a049e18

Browse files
committed
feat(actions): add gh action for markdown linting of the spec file
1 parent e1b518b commit a049e18

File tree

5 files changed

+329
-1152
lines changed

5 files changed

+329
-1152
lines changed

.github/workflows/validate-markdown.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: validate-markdown
33
# Author: @ralfhandl based on work of @MikeRalphson
44

55
#
6-
# This workflow validates markdown files in the `versions` and `schemas` directories matching *.md
6+
# This workflow validates markdown files in the `versions` directory matching *.md
77
#
88

99
# run this on push to any branch and creation of pull-requests
@@ -25,6 +25,6 @@ jobs:
2525
with:
2626
node-version: '20.x'
2727
- name: Validate markdown
28-
run: npx --yes mdv ./{versions,schemas/**}/*.md
28+
run: npx --yes mdv ./versions/[1-2].*.md
2929
- name: Lint markdown
30-
run: npx --yes markdownlint-cli --config .markdownlint.yaml ./{versions,schemas/**}/*.md
30+
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/1.0.[^0].md versions/1.[1-9].*.md versions/2.*.md

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"scripts": {
66
"build": "bash ./scripts/md2html/build.sh",
77
"test": "echo \"Error: no test specified\" && exit 1",
8-
"format-markdown": "bash ./scripts/format-markdown.sh ./{versions,schemas/**}/*.md"
8+
"format-markdown": "bash ./scripts/format-markdown.sh versions/1.0.[^0].md versions/1.[1-9].*.md versions/2.*.md"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)