File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Expand file tree Collapse file tree 1 file changed +40
-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
+ steps :
12
+ - name : checkout
13
+ uses : actions/checkout@master
14
+
15
+ - id : files
16
+ uses : masesgroup/retrieve-changed-files@v2
17
+ with :
18
+ format : ' csv'
19
+
20
+ - name : checkout-latest-rules
21
+ uses : actions/checkout@master
22
+ with :
23
+ repository : mongodb/mongodb-vale-action
24
+ path : ' ./tdbx-vale-rules'
25
+ token : ${{secrets.GITHUB_TOKEN}}
26
+
27
+ - name : move-files-for-vale-action
28
+ run : |
29
+ cp tdbx-vale-rules/.vale.ini .vale.ini
30
+ mkdir -p .github/styles/
31
+ cp -rf tdbx-vale-rules/.github/styles/ .github/
32
+
33
+ - name : run-vale
34
+ uses : errata-ai/vale-action@reviewdog
35
+ with :
36
+ reporter : github-pr-check
37
+ files : ${{steps.files.outputs.added_modified}}
38
+ fail_on_error : true
39
+ token : ${{secrets.GITHUB_TOKEN}}
40
+
You can’t perform that action at this time.
0 commit comments