Skip to content

Commit

Permalink
GitHub actions: Lint files with vale
Browse files Browse the repository at this point in the history
Add a GitHub action that runs vale on all added or modified files of a
pull request.
  • Loading branch information
lsalvadore committed Oct 11, 2023
1 parent a178b46 commit dd1e185
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: reviewdog
on:
pull_request:
types: opened

jobs:
vale:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: jitterbit/get-changed-files@v1
with:
format: json
- uses: errata-ai/vale-action@reviewdog
with:
reporter: github-pr-review
vale_flags: --config=".vale.ini"
files: ${{ steps.files.outputs.added_modified }}

0 comments on commit dd1e185

Please sign in to comment.