Skip to content

Commit 2792357

Browse files
committed
Fix command names
1 parent 6939fe5 commit 2792357

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.github/workflows/format_php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,18 +49,18 @@ jobs:
4949
${{ runner.os }}-phpcs-
5050
5151
- 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
5454
continue-on-error: true
5555

5656
- name: Fix detected PHP coding style issues (if any)
57-
if: ${{ steps.lint_php.outcome == 'failure' }}
57+
if: ${{ steps.check_php_cs.outcome == 'failure' }}
5858
id: fix_php
5959
run: composer cs:fix
6060
continue-on-error: true
6161

6262
- name: Commit PHP code-style fixes (if any)
63-
if: ${{ steps.lint_php.outcome == 'failure' }}
63+
if: ${{ steps.check_php_cs.outcome == 'failure' }}
6464
uses: EndBug/add-and-commit@v9
6565
with:
6666
message: "#15000 🪄️ Apply coding style fixes to PHP"
@@ -70,9 +70,9 @@ jobs:
7070
pull: '--rebase --autostash'
7171

7272
- name: Lint PHP coding style issues (if previously detected)
73-
if: ${{ steps.lint_php.outcome == 'failure' }}
73+
if: ${{ steps.check_php_cs.outcome == 'failure' }}
7474
run: composer cs:check -- --report-full --report-checkstyle=./phpcs-report.xml
7575

7676
- name: Show PHPCS results in on GitHub UI
77-
if: ${{ steps.lint_php.outcome == 'failure' }}
77+
if: ${{ steps.check_php_cs.outcome == 'failure' }}
7878
run: cs2pr ./phpcs-report.xml

0 commit comments

Comments
 (0)