Skip to content

Commit 6ae1374

Browse files
modifying in ibm-way
1 parent 151a427 commit 6ae1374

File tree

2 files changed

+11
-18
lines changed

2 files changed

+11
-18
lines changed

.github/workflows/vale.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -20,18 +20,11 @@ jobs:
2020
- name: Install Asciidoctor
2121
run: sudo apt-get install -y asciidoctor
2222

23-
- name: Install Vale
24-
run: |
25-
curl -fsSL https://github.com/errata-ai/vale/releases/latest/download/vale_Linux_64-bit.tar.gz | tar -xz
26-
sudo mv vale /usr/local/bin
27-
28-
- name: Run Vale on .adoc files
29-
run: |
30-
mkdir -p vale-results
31-
vale --output=JSON --glob='*.adoc' > vale-results/vale-output.json
32-
33-
- name: Upload Vale output as artifact
34-
uses: actions/upload-artifact@v4
23+
- name: Run Vale on AsciiDoc files
24+
uses: errata-ai/vale-action@v2.1.1
3525
with:
36-
name: vale-results
37-
path: vale-results/vale-output.json
26+
files: posts/test.adoc
27+
env:
28+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
29+
30+

.vale.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
# .vale.ini
2-
31
StylesPath = styles
42
MinAlertLevel = suggestion
53

6-
Packages = Microsoft, Google
4+
Vocab = WordUsageVocab
5+
Packages = Google
76

87
[*.adoc]
9-
BasedOnStyles = Vale, Microsoft, Google
8+
BasedOnStyles = WordUsage, Inclusivity, Spelling, Grammar, Google, Vale
9+
1010

0 commit comments

Comments
 (0)