diff --git a/.github/workflows/cs.yml b/.github/workflows/cs.yml index c674691..01cbf4d 100644 --- a/.github/workflows/cs.yml +++ b/.github/workflows/cs.yml @@ -33,8 +33,9 @@ jobs: # Check the code-style consistency of the PHP files. - name: Check PHP code style - continue-on-error: true + id: phpcs run: vendor/bin/phpcs -- --report-full --report-checkstyle=./phpcs-report.xml - name: Show PHPCS results in PR + if: ${{ always() && steps.phpcs.outcome == 'failure' }} run: cs2pr ./phpcs-report.xml