vale-action: Fail job if there are any suggestions/warnings/errors

I’m a perfectionist so would like the action to be very strict such that I can change if I push a mistake. Is it possible to do this without changing the level: error in all the config files?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 24 (9 by maintainers)

Most upvoted comments

This is now possible by using the new reviewdog-based action with fail_on_error: true:

name: reviewdog
on: [pull_request]

jobs:
  vale:
    name: runner / vale
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: errata-ai/vale-action@reviewdog
        with:
          fail_on_error: true
        env:
          GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

Yes but I would like the whole job to fail in this instance i.e. I should get an email which I don’t