-
Notifications
You must be signed in to change notification settings - Fork 81
34 lines (29 loc) · 1.11 KB
/
vale.yaml
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
name: Vale
on: [ pull_request ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45
with:
files: '**/*.{md,mdx}'
files_ignore: |
sources/api/*.{md,mdx}
apify-api/README.md
apify-api/openapi/README.md
apify-api/openapi/paths/README.md
apify-api/openapi/components/README.md
separator: ','
- uses: errata-ai/vale-action@reviewdog
if: steps.changed-files.outputs.any_changed == 'true'
with:
files: ${{ steps.changed-files.outputs.all_changed_files }}
separator: ','
fail_on_error: true
vale_flags: '--minAlertLevel=error'
reporter: github-pr-annotations