Skip to content

Commit dbf0859

Browse files
committed
feat: update reporter type
1 parent 138c558 commit dbf0859

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

.github/workflows/pr-vale-lint.yml

+17-1
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,20 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10-
- uses: errata-ai/[email protected]
10+
11+
- uses: reviewdog/action-setup@v1
12+
with:
13+
reviewdog_version: latest
14+
15+
- name: Install Vale
16+
run: |
17+
curl -fsSL https://github.com/errata-ai/vale/releases/latest/download/vale-linux-amd64 --output /usr/local/bin/vale
18+
chmod +x /usr/local/bin/vale
19+
vale --version # Check installation
20+
21+
- name: Run Vale and pass output to Reviewdog
22+
env:
23+
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
24+
run: |
25+
vale . 2>&1 | reviewdog -efm="%f:%l:%c: %m" \
26+
-name="Vale" -reporter=github-pr-review -filter-mode=diff_context -level=warning

0 commit comments

Comments
 (0)