Skip to content

Commit e13016d

Browse files
committed
Updating Vale v9
Signed-off-by: A.Arnold <[email protected]>
1 parent f9f2c9a commit e13016d

File tree

1 file changed

+24
-16
lines changed

1 file changed

+24
-16
lines changed

.github/workflows/vale.yml

Lines changed: 24 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,25 +2,33 @@
22

33
name: Docs-Linting
44

5-
# Controls when the action will run.
6-
on:
7-
# Triggers the workflow on push or pull request events but only for the main branch
5+
on:
86
push:
9-
branches: [ main ]
10-
11-
# Allows you to run this workflow manually from the Actions tab
12-
workflow_dispatch:
7+
paths:
8+
- 'docs/**'
9+
- '.github/workflows/vale.yml'
1310

1411
jobs:
15-
prose:
12+
vale:
13+
name: Linting with Vale
1614
runs-on: ubuntu-latest
15+
permissions:
16+
actions: read
17+
checks: read
18+
contents: read
19+
pull-requests: read
1720
steps:
18-
- name: Checkout
19-
uses: actions/checkout@master
20-
21-
- name: Vale
22-
uses: errata-ai/[email protected]
23-
with:
24-
debug: true
21+
- uses: actions/checkout@v4
22+
- name: Install Asciidoctor
23+
run: sudo apt-get install -y asciidoctor
24+
- uses: errata-ai/vale-action@reviewdog
25+
with:
26+
filter_mode: diff_context
27+
vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc"
28+
reporter: github-pr-review
29+
fail_on_error: true
2530
env:
26-
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
31+
# Required, set by GitHub actions automatically:
32+
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication#about-the-github_token-secret
33+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
34+
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)