-
Notifications
You must be signed in to change notification settings - Fork 48
39 lines (34 loc) · 990 Bytes
/
vale-tdbx.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: vale-checks
on:
pull_request:
paths:
- "source/**"
jobs:
vale:
name: TDBX Vale rules
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@master
- id: files
uses: masesgroup/retrieve-changed-files@v2
with:
format: 'csv'
- name: checkout-latest-rules
uses: actions/checkout@master
with:
repository: mongodb/mongodb-vale-action
path: './tdbx-vale-rules'
token: ${{secrets.GITHUB_TOKEN}}
- name: move-files-for-vale-action
run: |
cp tdbx-vale-rules/.vale.ini .vale.ini
mkdir -p .github/styles/
cp -rf tdbx-vale-rules/.github/styles/ .github/
- name: run-vale
uses: errata-ai/vale-action@reviewdog
with:
reporter: github-pr-check
files: ${{steps.files.outputs.added_modified}}
fail_on_error: true
token: ${{secrets.GITHUB_TOKEN}}