File tree Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Expand file tree Collapse file tree 1 file changed +42
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : vale-checks
2
+ on :
3
+ pull_request :
4
+ paths :
5
+ - " source/**"
6
+
7
+ jobs :
8
+ vale :
9
+ name : TDBX Vale rules
10
+ runs-on : ubuntu-latest
11
+ permissions :
12
+ contents : read
13
+ pull-requests : write
14
+ steps :
15
+ - name : checkout
16
+ uses : actions/checkout@master
17
+
18
+ - id : files
19
+ uses : masesgroup/retrieve-changed-files@v2
20
+ with :
21
+ format : ' csv'
22
+
23
+ - name : checkout-latest-rules
24
+ uses : actions/checkout@master
25
+ with :
26
+ repository : mongodb/mongodb-vale-action
27
+ path : ' ./tdbx-vale-rules'
28
+ token : ${{secrets.GITHUB_TOKEN}}
29
+
30
+ - name : move-files-for-vale-action
31
+ run : |
32
+ cp tdbx-vale-rules/.vale.ini .vale.ini
33
+ mkdir -p .github/styles/
34
+ cp -rf tdbx-vale-rules/.github/styles/ .github/
35
+
36
+ - name : run-vale
37
+ uses : errata-ai/vale-action@reviewdog
38
+ with :
39
+ reporter : github-pr-check
40
+ files : ${{steps.files.outputs.added_modified}}
41
+ fail_on_error : true
42
+ token : ${{secrets.GITHUB_TOKEN}}
You can’t perform that action at this time.
0 commit comments