Skip to content

Commit

Permalink
add github workflow for vale
Browse files Browse the repository at this point in the history
  • Loading branch information
PedramNavid committed Aug 14, 2024
1 parent 03761f1 commit 4b1793a
Showing 1 changed file with 52 additions and 1 deletion.
53 changes: 52 additions & 1 deletion .github/workflows/vale.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,55 @@ jobs:
files: '["docs-next/docs"]'
vale_flags: "--config=docs/.vale.ini"
fail_on_error: true
reporter: github-pr-check
reporter: github-pr-check


on:
pull_request:
paths:
- 'docs/**'
- .github/workflows/vale.yml
push:
branches:
- master
- docs-prod
paths:
- 'docs/**'
- .github/workflows/vale.yml

concurrency:
group: ${{ github.workflow}}-${{github.ref}}
cancel-in-progress: true

permissions:
contents: read

jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: '["docs/content", "docs/sphinx"]'
vale_flags: "--config=docs/.vale.ini"
fail_on_error: true
- uses: errata-ai/vale-action@reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: '["docs/content", "docs/sphinx"]'
vale_flags: "--config=docs/.vale.ini"
fail_on_error: true
reporter: github-pr-review
- uses: errata-ai/vale-action@reviewdog
env:
REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: '["docs/content", "docs/sphinx"]'
vale_flags: "--config=docs/.vale.ini"
fail_on_error: true
reporter: github-check

0 comments on commit 4b1793a

Please sign in to comment.