Skip to content

Commit e2d547d

Browse files
committed
update markdownlint
1 parent 23aea36 commit e2d547d

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

‎.github/workflows/template.yml‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@ jobs:
3030
run: |
3131
just actionlint
3232
render-and-check:
33-
# ubuntu-latest includes Node, which markdownlint-cli2 needs
34-
runs-on: ubuntu-latest
33+
runs-on: ubuntu-slim
3534
permissions:
3635
contents: read
3736
steps:
@@ -52,8 +51,8 @@ jobs:
5251
- name: Render a project and run its checks
5352
run: |
5453
just check
55-
# Same markdownlint-cli2 version as the VS Code markdownlint extension
54+
# Same action pin as the template's python.yml
5655
- name: Markdownlint
57-
working-directory: _rendered/demo-project
58-
run: |
59-
npx --yes markdownlint-cli2@0.23.2 "**/*.md"
56+
uses: DavidAnson/markdownlint-cli2-action@696eb3f2509270d7b882d2aa68347bc676e7af34 # v25.0.0
57+
with:
58+
globs: _rendered/demo-project/**/*.md

‎template/.github/workflows/python.yml.jinja‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
persist-credentials: false
5959
# Keep markdownlint-cli2 in step with the VS Code markdownlint extension
6060
- name: Markdownlint
61-
uses: DavidAnson/markdownlint-cli2-action@21c1be1b93ad9ed58fa840aacc3f279cde2a72ff # v24.2.0
61+
uses: DavidAnson/markdownlint-cli2-action@696eb3f2509270d7b882d2aa68347bc676e7af34 # v25.0.0
6262
with:
6363
globs: "**/*.md"
6464
{%- endraw %}

0 commit comments

Comments
 (0)