File tree 1 file changed +12
-5
lines changed
1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1
- # Filtering pull requests is much easier when we can reliably guarantee
2
- # that the "Assignee" field is populated.
3
- name : Docs markdown lint
1
+ name : Docs lint
4
2
5
- on : [push, pull_request]
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
6
8
7
9
jobs :
8
10
lint :
@@ -11,15 +13,20 @@ jobs:
11
13
- uses : actions/checkout@v4
12
14
with :
13
15
fetch-depth : 0
16
+
17
+ - name : Setup Node
18
+ uses : ./.github/actions/setup-node
19
+
14
20
- uses : tj-actions/changed-files@v45
15
21
id : changed-files
16
22
with :
17
23
files : " docs/**/*.md"
18
24
files_ignore : " docs/reference/*.md"
19
25
separator : " ,"
26
+
20
27
- name : lint
21
28
if : steps.changed-files.outputs.any_changed == 'true'
22
29
run : |
23
30
cd site
24
31
../scripts/pnpm_install.sh
25
- pnpm exec markdownlint-cli2 --fix {{ steps.changed-files.outputs.all_changed_files }}
32
+ pnpm exec markdownlint-cli2 {{ steps.changed-files.outputs.all_changed_files }}
You can’t perform that action at this time.
0 commit comments