File tree Expand file tree Collapse file tree 5 files changed +7
-16
lines changed
Expand file tree Collapse file tree 5 files changed +7
-16
lines changed Original file line number Diff line number Diff line change 1212 # Check that documentation has not changed.
1313 - run : |
1414 git diff --exit-code docs/github-action-templates.md
15-
16- lint-markdown :
17- runs-on : ubuntu-latest
18- name : Lint Markdown
19- steps :
20- - uses : actions/checkout@v4
21- - uses : arduino/setup-task@v2
22- - run : |
23- task lint:markdown
24- # Check that nothing has changed.
25- - run : |
26- git diff --exit-code
Original file line number Diff line number Diff line change 1+ ../../github/workflows/markdown.yaml
Original file line number Diff line number Diff line change 1+ config/markdownlint-cli/.markdownlint.jsonc
Original file line number Diff line number Diff line change 1+ config /markdownlint-cli /.markdownlintignore
Original file line number Diff line number Diff line change @@ -44,13 +44,13 @@ tasks:
4444 lint:markdown :
4545 desc : " Lint Markdown"
4646 cmds :
47- # itkdev/markdownlint does not support `--ignore-path`
48- - docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint --config config/markdownlint-cli/.markdownlint.jsonc --ignore-path config/markdownlint-cli/.markdownlintignore {{.GLOB}} --fix
49- - docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint --config config/markdownlint-cli/.markdownlint.jsonc --ignore-path config/markdownlint-cli/.markdownlintignore {{.GLOB}}
47+ # I cannot get itkdev/markdownlint to work as expected, i.e. as peterdavehello/markdownlint does …
48+ - docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint {{.GLOB}} --fix
49+ - docker run --rm --volume "$PWD":/md peterdavehello/markdownlint markdownlint {{.GLOB}}
5050 vars :
5151 # We use a block scalar (https://yaml-multiline.info/#block-scalars) here to make escaping (a little) easier.
5252 GLOB : >-
53- {{.CLI_ARGS | default "\\ '**/*.md\\ '"}}
53+ {{.CLI_ARGS | default "'**/*.md'"}}
5454
5555 default :
5656 cmds :
You can’t perform that action at this time.
0 commit comments