Skip to content

Commit f9a552c

Browse files
committed
vale-update-8
Signed-off-by: A.Arnold <[email protected]>
1 parent 1e71e2f commit f9a552c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

.github/workflows/vale-on-pull.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Linting with Vale on pull request
2+
on: [pull_request]
3+
4+
jobs:
5+
vale:
6+
name: Linting with Vale
7+
runs-on: ubuntu-22.04
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Install Asciidoctor
11+
run: sudo apt-get install -y asciidoctor
12+
- uses: errata-ai/vale-action@reviewdog
13+
with:
14+
filter_mode: diff_context
15+
vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc"
16+
reporter: github-pr-review
17+
fail_on_error: true
18+
env:
19+
# Required, set by GitHub actions automatically:
20+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
21+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)