Skip to content

Commit

Permalink
Updating with official Vale github action
Browse files Browse the repository at this point in the history
  • Loading branch information
karthikmanam committed Feb 23, 2025
1 parent e3e5a93 commit 52b0427
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions .github/workflows/vale-lint.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@ on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
pathd:
- "**/*.md"

jobs:
lint:
name: Lint Markdown with Vale
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Build Docker image with Vale
run: |
docker build -t vale -f Dockerfile-vale .
uses: actions/checkout@v4

- name: Run Vale linting
run: |
# Run the container. It will execute "vale ." as its CMD.
docker run --rm vale
uses: errata-ai/vale-action@v1
with:
files: "."
fail_on_error: true
debug: true

0 comments on commit 52b0427

Please sign in to comment.