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 58b8845
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/vale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
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
files: ${{ steps.files.outputs.added_modified }}

0 comments on commit 58b8845

Please sign in to comment.