Skip to content

Commit ac96fd3

Browse files
authored
Add Vale PR check back in (#1492)
1 parent c8e558d commit ac96fd3

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/vale.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Vale style check
2+
on:
3+
pull_request:
4+
paths:
5+
- '**.mdx'
6+
- '**.md'
7+
- '.vale/**'
8+
- '.vale.ini'
9+
- '!**/changelog/**'
10+
11+
jobs:
12+
vale:
13+
runs-on: ubuntu-latest
14+
if: |
15+
github.event.pull_request.user.login != 'fern-support' &&
16+
github.event.pull_request.user.login != 'github-actions'
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Get changed files
21+
id: changed-files
22+
uses: tj-actions/changed-files@v41
23+
with:
24+
files: |
25+
fern/**/*.md
26+
fern/**/*.mdx
27+
files_ignore: |
28+
**/changelog/**
29+
- uses: errata-ai/vale-action@reviewdog
30+
if: steps.changed-files.outputs.any_changed == 'true'
31+
with:
32+
files: ${{ steps.changed-files.outputs.all_changed_files }}
33+
version: 3.12.0
34+
reporter: github-pr-review
35+
fail_on_error: false
36+
env:
37+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.vale.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ Microsoft.Spacing = NO
2323
Microsoft.Semicolon = NO # Mostly just picks up code
2424
Microsoft.SentenceLength = NO # Mostly just picks up code
2525
Microsoft.Dashes = NO
26+
Microsoft.Foreign = NO
2627

2728
# Not relevant for Fern audience
2829
Microsoft.GeneralURL = NO

0 commit comments

Comments
 (0)