Skip to content

Commit ee0ad4f

Browse files
committed
Add Vale
1 parent e5974d8 commit ee0ad4f

File tree

4 files changed

+25
-1
lines changed

4 files changed

+25
-1
lines changed

.vale.ini renamed to .github/.vale.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
StylesPath = .github/styles
1+
StylesPath = styles
22

33
MinAlertLevel = suggestion
44
Vocab = Base

.github/styles/Vocab/Base/accept.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Bleve

.github/workflows/lint.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Linting
2+
on: push
3+
4+
jobs:
5+
prose:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v3
10+
11+
- name: Build
12+
run: ls -a && ls -a .github
13+
14+
- name: Vale
15+
uses: errata-ai/vale-action@reviewdog
16+
with:
17+
fail_on_error: true
18+
reporter: github-check
19+
files: README.md
20+
vale_flags: "--config=.github/.vale.ini"
21+
env:
22+
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
env:
1313
GH_TOKEN: ${{ secrets.GH_TOKEN }}
1414
run: make
15+
if: startsWith(github.ref, 'refs/tags/')
1516
- name: Release
1617
uses: softprops/action-gh-release@v1
1718
if: startsWith(github.ref, 'refs/tags/')

0 commit comments

Comments
 (0)