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 4018748 commit 18cca3f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,22 @@ jobs:
fi
done
- name: Run Vale and report errors but don't fail
- name: Run Vale on changed lines
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
id: vale-lint
uses: errata-ai/vale-action@reviewdog
with:
token: ${{ secrets.GITHUB_TOKEN }}
reporter: github-pr-check
level: error # Report as errors instead of warnings
fail_on_error: false # Ensure the check won't fail the entire CI
reporter: github-check # Annotations will be posted in the PR
level: error # Report as errors to make issues clearer
filter_mode: added # Only analyze changed lines
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
separator: ' '
version: '2.27.0'
filter_mode: added
continue-on-error: true # Ensure workflow continues even if Vale finds issues

- name: Post summary comment
if: ${{ steps.changed-files.outputs.any_changed == 'true' }}
- name: Post summary comment if Vale finds issues
if: steps.vale-lint.outcome == 'failure' # Check if Vale found any linting issues
run: |
COMMENT="❗️Oh no, some Vale linting found issues! Please check the **Files changed** tab for detailed results and make the necessary updates."
COMMENT+=$'\n'
Expand Down

0 comments on commit 18cca3f

Please sign in to comment.