Skip to content

Commit 2820c0d

Browse files
committed
Update reusable markup lint
1 parent c90ba46 commit 2820c0d

1 file changed

Lines changed: 8 additions & 19 deletions

File tree

.github/workflows/reusable-markup-lint.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,28 @@ on:
88
type: string
99
required: false
1010
default: "Lint"
11-
working-directory:
12-
description: "Working directory"
13-
type: string
14-
required: false
15-
default: "."
1611
operating-system:
1712
description: "Operating system executing the runner"
1813
type: string
1914
required: false
2015
default: "ubuntu-latest"
21-
python-version:
22-
description: "Python version"
16+
working-directory:
17+
description: "Working directory"
2318
type: string
2419
required: false
25-
default: "3.14"
20+
default: "."
2621

2722
jobs:
2823
markup-lint:
2924
name: ${{ inputs.job-name }}
3025
runs-on: ${{ inputs.operating-system }}
26+
defaults:
27+
run:
28+
working-directory: ${{ inputs.working-directory }}
3129
steps:
3230
- name: Check out repository
3331
uses: actions/checkout@v6
3432
- name: Lint Markdown files
35-
uses: DavidAnson/markdownlint-cli2-action@v22
36-
with:
37-
globs: "**/*.md"
38-
- name: Install Python ${{ inputs.python-version }}
39-
uses: actions/setup-python@v6
40-
with:
41-
python-version: ${{ inputs.python-version }}
33+
run: npx markdownlint-cli2 "**/*.md"
4234
- name: Lint YAML files
43-
run: |
44-
python -m pip install --upgrade pip
45-
pip install yamllint
46-
yamllint .
35+
run: pipx run yamllint .

0 commit comments

Comments
 (0)