-
Notifications
You must be signed in to change notification settings - Fork 6
37 lines (33 loc) · 1.09 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: vale-validation
on:
pull_request:
#types: [opened, reopened, synchronize]
jobs:
vale:
name: runner-vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
#- uses: errata-ai/vale-action@reviewdog
# id: check
#with:
# version: 2.17.0
# github-pr-check, github-pr-review, github-check
# reporter: github-pr-review
#fail_on_error: true
# added, diff_context, file, nofilter
# filter_mode: nofilter
- name: Get latest version of Vale
id: lastversion
uses: dvershinin/lastversion-action@v0.0.3
with:
repository: errata-ai/vale
- name: Install Vale
run: |
wget https://github.com/errata-ai/vale/releases/download/v${{ steps.lastversion.outputs.last_version }}/vale_${{ steps.lastversion.outputs.last_version }}_Linux_64-bit.tar.gz -O vale.tar.gz
tar -xvzf vale.tar.gz vale
rm vale.tar.gz
#- name: Validate the syntax
# run: ./vale --config=.vale.ini *.md
- name: Validate the syntax
run: ./vale ./visual-kpi-docs/docs