diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 1921b72..5ec8ab3 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