Skip to content

Commit 2fd23a4

Browse files
authored
ci(vale): only report warnings and errors (#23238)
Only fail vale test on warnings and errors on PRs.
1 parent 6c35098 commit 2fd23a4

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,11 @@ area/copilot:
181181
- any-glob-to-any-file:
182182
- content/manuals/copilot/**
183183

184+
ci:
185+
- changed-files:
186+
- any-glob-to-any-file:
187+
- .github/workflows/**
188+
184189
hugo:
185190
- changed-files:
186191
- any-glob-to-any-file:

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,6 @@ jobs:
105105
name: Run reviewdog for vale
106106
if: ${{ matrix.target == 'vale' && github.event_name == 'pull_request' }}
107107
run: |
108-
cat ./tmp/vale.out | reviewdog -f=rdjsonl -name=vale -reporter=github-pr-annotations -fail-on-error=false -filter-mode=added -level=info
108+
cat ./tmp/vale.out | reviewdog -f=rdjsonl -name=vale -reporter=github-pr-annotations -fail-on-error=false -filter-mode=added -level=info -fail-level=warning
109109
env:
110110
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)