Skip to content

Commit

Permalink
Add workflow for vale
Browse files Browse the repository at this point in the history
Signed-off-by: Mirjam Aulbach <[email protected]>
  • Loading branch information
programmiri committed Sep 25, 2023
1 parent e2a3a4f commit 70c59c1
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/vale.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: "Vale spelling and prose check"
on:
push:
branches: [ "main" ]
paths:
- "**.md"
pull_request:
branches: [ "main" ]
paths:
- "**.md"

jobs:
spell-prose-check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac #v4.0.0
with:
ref: ${{ github.ref }}
fetch-depth: 0

- name: Run vale
uses: errata-ai/vale-action@c4213d4de3d5f718b8497bd86161531c78992084 #v2.0.1
with:
fail_on_error: true
vale_flags: "--minAlertLevel=error"
reporter: github-pr-check
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit 70c59c1

Please sign in to comment.