From 4cc5d79d78f5ccdf13511e0bc4ebaab9c650b7c8 Mon Sep 17 00:00:00 2001 From: Aditya Thebe Date: Wed, 2 Oct 2024 19:49:15 +0545 Subject: [PATCH] chore: vale on changed files --- .github/workflows/style.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 1921b72a..5ec8ab30 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -1,6 +1,6 @@ name: Vale on: - push: + pull_request: jobs: vale: @@ -8,6 +8,18 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 + + - name: Get changed files + id: changed-files + uses: tj-actions/changed-files@v45 + + - name: Echo changed files + run: | + echo "Changed files:" + echo "${{ steps.changed-files.outputs.all_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 \ No newline at end of file