Skip to content

Commit 237ebef

Browse files
committed
added a vale action to the workflow
1 parent 2e94e51 commit 237ebef

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

.github/workflows/htmltest.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@ jobs:
2828
hugo --minify
2929
3030
- name: Run htmltest
31+
# Don't fail the build on broken links
32+
#continue-on-error: true
3133
uses: wjdp/htmltest-action@master
3234
with:
3335
config: .htmltest.yml

.github/workflows/vale-action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Lint with Vale
2+
on: [pull_request]
3+
4+
jobs:
5+
vale:
6+
name: Vale linter
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: errata-ai/vale-action@reviewdog
11+
with:
12+
filter_mode: added
13+
vale_flags: "--no-exit --minAlertLevel=error --glob=*.adoc"
14+
reporter: github-pr-review
15+
fail_on_error: false
16+
env:
17+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
18+
REVIEWDOG_GITHUB_API_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 commit comments

Comments
 (0)