Skip to content

Commit d704fa8

Browse files
authored
README: harden the PHPCS code sample (#105)
Co-authored-by: jrfnl <[email protected]>
1 parent 2b8917f commit d704fa8

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,10 +98,11 @@ To see the output both in the PR as well as in the action logs, use two steps, l
9898

9999
```yaml
100100
- name: Check PHP code style
101-
continue-on-error: true
101+
id: phpcs
102102
run: phpcs --report-full --report-checkstyle=./phpcs-report.xml
103103

104104
- name: Show PHPCS results in PR
105+
if: ${{ always() && steps.phpcs.outcome == 'failure' }}
105106
run: cs2pr ./phpcs-report.xml
106107
```
107108

0 commit comments

Comments
 (0)