-
Notifications
You must be signed in to change notification settings - Fork 34
40 lines (36 loc) · 1.03 KB
/
vale-pr-review.yml
File metadata and controls
40 lines (36 loc) · 1.03 KB
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
40
# Run Vale linter only on changed docs when a PR is opened or updated against main.
name: Vale PR review
on:
pull_request:
branches: [main]
types: [opened, synchronize]
jobs:
vale:
name: Vale
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Get changed doc files
id: changed
uses: tj-actions/changed-files@v47
with:
files: |
docs/**/*.md
docs/**/*.mdx
files_ignore: |
docs/reference/kots-cli-*
docs/reference/replicated-cli-*
docs/reference/notifications-*
docs/release-notes/rn-*
separator: " "
- name: Run Vale on changed files
if: steps.changed.outputs.all_changed_files_count != '0'
uses: errata-ai/vale-action@v2
with:
files: ${{ steps.changed.outputs.all_changed_files }}
separator: " "
fail_on_error: false
reporter: github-pr-review