errata-ai / vale-action

:octocat: The official GitHub Action for Vale -- install, manage, and run Vale with ease.
MIT License
201 stars 51 forks source link

exclude/ignore paths in GH Action #96

Open sudhanshu456 opened 1 year ago

sudhanshu456 commented 1 year ago

I was looking for a way to exclude files and stumbled upon this issue on GitHub: https://github.com/errata-ai/vale/issues/254. I noticed that Vale CLI has a glob option, so I tried to find the same option in the GitHub action, but I couldn't locate it. Can you please advise me on how to proceed?

Is there an option that I may have overlooked in the action parameters? If not, would it be possible to add this feature?

spier commented 1 year ago

@sudhanshu456 according to these docs you can use the vale_flags property of the GitHub Action for this purpose. e.g.

    - name: Vale Linting
      uses: errata-ai/vale-action@reviewdog
      with:
        vale_flags: "--glob=*.md"