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