Skip to content

Commit 51e16c2

Browse files
committed
Use mise to run markdown linting
1 parent 0d51061 commit 51e16c2

File tree

3 files changed

+8
-20
lines changed

3 files changed

+8
-20
lines changed

.github/config/.markdownlint-cli2.yaml

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/reusable-markdown-lint-check.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ jobs:
1212
steps:
1313
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1414

15+
- uses: jdx/mise-action@9dc7d5dd454262207dea3ab5a06a3df6afc8ff26 # v3.4.1
16+
1517
- name: Run markdownlint
1618
run: |
17-
npx [email protected] --config .github/config/.markdownlint-cli2.yaml "**/*.md"
19+
if ! mise run lint:markdown; then
20+
echo "markdownlint failed. To auto-fix many issues locally, run:"
21+
echo " mise run lint:markdown --fix"
22+
exit 1
23+
fi

mise.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
[tools]
22
lychee = "0.21.0"
3+
markdownlint-cli2 = "0.17.1"
34

45
[settings]
56
# Only install tools explicitly defined in the [tools] section above

0 commit comments

Comments
 (0)