errata-ai / vale-action

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

Custom vale.ini location #134

Open paveldudka opened 1 month ago

paveldudka commented 1 month ago

My docs are located not at the root of the repo and I want to keep all the vale config colocated with docs However, I don't see a way to specify custom vale.ini location or change a working directory

beritou commented 3 weeks ago

I had the same issue and vale_flags was the solution that worked for me.

      - name: "vale.sh spell check"
        uses: errata-ai/vale-action@reviewdog
        with:
          files: docs/src
          fail_on_error: true
          filter_mode: nofilter
          vale_flags: "--config=docs/.vale.ini"

Source: https://forem.julialang.org/kellertuer/improve-your-documentation-using-valesh-5587