File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -49,18 +49,18 @@ jobs:
49
49
${{ runner.os }}-phpcs-
50
50
51
51
- name : Detect PHP coding style issues
52
- id : lint_php
53
- run : composer cs:lint
52
+ id : check_php_cs
53
+ run : composer cs:check
54
54
continue-on-error : true
55
55
56
56
- name : Fix detected PHP coding style issues (if any)
57
- if : ${{ steps.lint_php .outcome == 'failure' }}
57
+ if : ${{ steps.check_php_cs .outcome == 'failure' }}
58
58
id : fix_php
59
59
run : composer cs:fix
60
60
continue-on-error : true
61
61
62
62
- name : Commit PHP code-style fixes (if any)
63
- if : ${{ steps.lint_php .outcome == 'failure' }}
63
+ if : ${{ steps.check_php_cs .outcome == 'failure' }}
64
64
uses : EndBug/add-and-commit@v9
65
65
with :
66
66
message : " #15000 🪄️ Apply coding style fixes to PHP"
70
70
pull : ' --rebase --autostash'
71
71
72
72
- name : Lint PHP coding style issues (if previously detected)
73
- if : ${{ steps.lint_php .outcome == 'failure' }}
73
+ if : ${{ steps.check_php_cs .outcome == 'failure' }}
74
74
run : composer cs:check -- --report-full --report-checkstyle=./phpcs-report.xml
75
75
76
76
- name : Show PHPCS results in on GitHub UI
77
- if : ${{ steps.lint_php .outcome == 'failure' }}
77
+ if : ${{ steps.check_php_cs .outcome == 'failure' }}
78
78
run : cs2pr ./phpcs-report.xml
You can’t perform that action at this time.
0 commit comments