Skip to content

Commit

Permalink
Pin markdownlint and helper lib
Browse files Browse the repository at this point in the history
  • Loading branch information
qmacro committed Apr 20, 2023
1 parent 70948a2 commit 2cf0278
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/markdown-checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,18 +42,19 @@ jobs:
run: "echo ::add-matcher::.github/workflows/markdownlint/problem-matcher.json"

- id: install_linter
name: Install linting tool and custom rule
name: Install linting tool, custom rule and rule helpers
run: |
npm install \
--no-package-lock \
--no-save \
markdownlint-cli markdownlint-rule-titlecase
markdownlint-cli@0.27 markdownlint-rule-titlecase [email protected]
- id: run_linter
if: steps.check_files_changed.outputs.changed_files
name: Run linter with specific rules, on the docs/ content
run: |
npx markdownlint \
--config .github/workflows/markdownlint/config.yaml \
--rules .github/workflows/markdownlint/md901 \
--rules markdownlint-rule-titlecase \
${{ steps.check_files_changed.outputs.changed_files }}

0 comments on commit 2cf0278

Please sign in to comment.