diff --git a/.github/workflows/quick-check.yml b/.github/workflows/quick-check.yml index 547c036646..c86ffeb06a 100644 --- a/.github/workflows/quick-check.yml +++ b/.github/workflows/quick-check.yml @@ -41,12 +41,13 @@ jobs: # with: # report_paths: 'gwt/build/out/**/test/**/reports/TEST-*.xml' - name: Run reviewdog on all checkstyle output as applied to this PR's contents - if: always() + if: github.event_name == 'pull_request' env: REVIEWDOG_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | cd gwt for xml in $(find build/out | grep checkstyle); do + reviewdog -f=checkstyle -reporter=local -level=info -diff="git diff ${{github.event.pull_request.base.sha}}"< $xml reviewdog -f=checkstyle -reporter=github-pr-review -level=info < $xml done - name: Upload checkstyle xml for manual review