Skip to content

Commit

Permalink
chore: vale on changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
adityathebe committed Oct 2, 2024
1 parent aaa0332 commit 6bc9c72
Showing 1 changed file with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions .github/workflows/style.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,26 @@
name: Vale
on:
push:
pull_request:

jobs:
vale:
name: runner / vale
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: errata-ai/vale-action@reviewdog

- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v45

- name: List changed fiels
run: |
echo "Files changed:"
echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n'
- name: Run Vale on changed files
uses: errata-ai/vale-action@reviewdog
with:
reporter: github-check
files: ${{ steps.changed-files.outputs.all_changed_files }}
reporter: github-pr-check
fail_on_error: true

0 comments on commit 6bc9c72

Please sign in to comment.