Skip to content

Commit a49af7f

Browse files
committed
add vale pr check back in
1 parent 8540f3a commit a49af7f

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/vale.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
30+
- name: Install Vale
31+
if: steps.changed-files.outputs.any_changed == 'true'
32+
run: |
33+
wget https://github.com/errata-ai/vale/releases/download/v3.12.0/vale_3.12.0_Linux_64-bit.tar.gz
34+
tar -xvzf vale_3.12.0_Linux_64-bit.tar.gz
35+
sudo mv vale /usr/local/bin/
36+
37+
- name: Run Vale
38+
if: steps.changed-files.outputs.any_changed == 'true'
39+
run: |
40+
vale sync
41+
vale ${{ steps.changed-files.outputs.all_changed_files }}

fern/products/docs/pages/api-references/audiences.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ subtitle: Use audiences to filter the endpoints, schemas, and properties that ar
55

66
<Markdown src="/snippets/pro-plan.mdx"/>
77

8+
test change
89
Audiences are a useful tool for segmenting your API for different consumers. Common examples of audiences include `public`
910
and `beta`. You can configure audiences in both [the OpenAPI Specification](/learn/api-definitions/openapi/extensions/audiences) as well as [the Fern Definition](/learn/api-definition/fern/audiences).
1011

0 commit comments

Comments
 (0)