Skip to content

Commit

Permalink
add failure
Browse files Browse the repository at this point in the history
  • Loading branch information
mirnawong1 committed Oct 15, 2024
1 parent 5763354 commit e0d8c80
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,16 @@ jobs:
files: ${{ steps.changed-files.outputs.all_changed_and_modified_files }}
separator: ' '
version: '2.27.0'
fail_on_error: false # Ensure the step doesn't fail even if issues are found
fail_on_error: true # Ensure the step doesn't fail even if issues are found
level: warning
continue-on-error: true


- name: Install GitHub CLI
run: sudo apt-get install -y gh

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

0 comments on commit e0d8c80

Please sign in to comment.