File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
2722jobs :
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 .
You can’t perform that action at this time.
0 commit comments