Closed jdkato closed 2 years ago
@jdkato maybe it is also better to switch to vale 2.16 before the rewrite? So that packages will be available in vale-action a bit faster.
It's already pretty close to being ready to use. Check out the reviewdog branch.
New action works great 😍. Fulfills all our needs.
Thanks for improving this great tool! 🤝
Testing this version has worked fantastic. One question, is there a way for vale to run on all md files in the repo vs just the ones that have been submitted with a PR? Good for repos that already exist with documentation vs new files in PR. Thank you
You should be able to use a combination of github-check
and nofilter
.
lint:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: errata-ai/vale-action@reviewdog
with:
# only needed if you want push events too
reporter: github-check
filter_mode: nofilter
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
You should be able to use a combination of
github-check
andnofilter
.lint: name: runner / vale runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: errata-ai/vale-action@reviewdog with: # only needed if you want push events too reporter: github-check filter_mode: nofilter env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
I will give this a try. Thank you @jdkato ☺️
You should be able to use a combination of
github-check
andnofilter
.lint: name: runner / vale runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: errata-ai/vale-action@reviewdog with: # only needed if you want push events too reporter: github-check filter: nofilter env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
You mean filter_mode
not filter
though, right?
Yep, updated.
@jdkato , this workflow run doesn't fail on the occurrence of errors. Is there any additional configuration needed ?
action.yml
: https://github.com/Namyalg/vale-boilerplate/blob/master/.github/workflows/action.yml
.vale.ini
: https://github.com/Namyalg/vale-boilerplate/blob/master/.vale.ini
@Namyalg, you need to add reporter: github-check
if you want it to fail for push
events too.
Thank you, it works as expected now.
With the release of v2.16.0 of Vale, the CLI now has built-in (and improved) support for the action's config-handling features.
There's also been a number of changes to GitHub Actions since this one was created, so I figure it's a good time to think about a re-write:
.vale.ini
.--glob
, should be supported (#37).maybe more ...