Skip to content

Commit b7860e4

Browse files
authored
split vale checks (#838)
* split vale checks * fixup * revert aws usage
1 parent 0c9ca42 commit b7860e4

File tree

2 files changed

+28
-2
lines changed

2 files changed

+28
-2
lines changed

.github/workflows/vale.yml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,18 @@ jobs:
1515
- name: Install Asciidoctor
1616
run: sudo apt-get install -y asciidoctor
1717

18-
- name: Run Vale
18+
- name: Vale Style Check
19+
uses: errata-ai/vale-action@reviewdog
20+
env:
21+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
22+
with:
23+
fail_on_error: false
24+
reporter: github-pr-check
25+
filter_mode: added
26+
files: latest/ug
27+
continue-on-error: true
28+
29+
- name: Enforce AWS Brand
1930
uses: errata-ai/vale-action@reviewdog
2031
env:
2132
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
@@ -24,4 +35,5 @@ jobs:
2435
reporter: github-pr-check
2536
filter_mode: added
2637
files: latest/ug
27-
continue-on-error: false
38+
vale_flags: "--config brand.vale.ini"
39+
continue-on-error: true

brand.vale.ini

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
StylesPath = vale/styles
2+
3+
MinAlertLevel = error
4+
5+
# Packages = RedHat, AsciiDoc
6+
7+
#Vocab = EksDocsVocab
8+
9+
# Ignore files in dirs starting with `.` to avoid raising errors for `.vale/fixtures/*/testinvalid.adoc` files
10+
[[!.]*.adoc]
11+
BasedOnStyles = EksDocs
12+
EksDocs.ExternalDomains = OFF
13+
14+

0 commit comments

Comments
 (0)