Skip to content

Commit 2305183

Browse files
committed
add vale github action
1 parent 97c1e6e commit 2305183

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/vale.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Run Vale linter
2+
on:
3+
pull_request:
4+
paths:
5+
- '**.mdx'
6+
- '**.md'
7+
- '.vale/**'
8+
- '.vale.ini'
9+
10+
jobs:
11+
vale:
12+
runs-on: ubuntu-latest
13+
if: |
14+
github.event.pull_request.user.login != 'fern-support' &&
15+
github.event.pull_request.user.login != 'github-actions'
16+
steps:
17+
- uses: actions/checkout@v4
18+
19+
- uses: errata-ai/vale-action@reviewdog
20+
with:
21+
files: fern
22+
env:
23+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)