Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Oct 15, 2024
1 parent c86b6c7 commit 1b8429f
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,15 @@ jobs:
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
separator: ' '
version: '2.27.0'
level: warning # Adjust this to "error" or "warning" based on the issues you want to catch
fail_level: warning # Fail on warnings or higher levels

# Capture the conclusion from Reviewdog
- name: Check for Vale issues
# Check the exit code of Reviewdog
- name: Set issues_found
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
run: |
if grep -q '"conclusion":"neutral"' $GITHUB_WORKSPACE/../_temp/_github_workflow/*/annotations.json; then
echo "Vale found issues."
if [[ ${{ steps.run-vale.outcome }} == "failure" ]]; then
echo "issues_found=true" >> $GITHUB_ENV
else
echo "No Vale issues found."
echo "issues_found=false" >> $GITHUB_ENV
fi
Expand Down

0 comments on commit 1b8429f

Please sign in to comment.