From 279235791ee66d60c1c445fe6ffc735b41846cec Mon Sep 17 00:00:00 2001 From: Alies Lapatsin Date: Fri, 14 Apr 2023 21:20:02 +0200 Subject: [PATCH] Fix command names --- .github/workflows/format_php.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/format_php.yml b/.github/workflows/format_php.yml index 14844e7..b8a557a 100644 --- a/.github/workflows/format_php.yml +++ b/.github/workflows/format_php.yml @@ -49,18 +49,18 @@ jobs: ${{ runner.os }}-phpcs- - name: Detect PHP coding style issues - id: lint_php - run: composer cs:lint + id: check_php_cs + run: composer cs:check continue-on-error: true - name: Fix detected PHP coding style issues (if any) - if: ${{ steps.lint_php.outcome == 'failure' }} + if: ${{ steps.check_php_cs.outcome == 'failure' }} id: fix_php run: composer cs:fix continue-on-error: true - name: Commit PHP code-style fixes (if any) - if: ${{ steps.lint_php.outcome == 'failure' }} + if: ${{ steps.check_php_cs.outcome == 'failure' }} uses: EndBug/add-and-commit@v9 with: message: "#15000 🪄️ Apply coding style fixes to PHP" @@ -70,9 +70,9 @@ jobs: pull: '--rebase --autostash' - name: Lint PHP coding style issues (if previously detected) - if: ${{ steps.lint_php.outcome == 'failure' }} + if: ${{ steps.check_php_cs.outcome == 'failure' }} run: composer cs:check -- --report-full --report-checkstyle=./phpcs-report.xml - name: Show PHPCS results in on GitHub UI - if: ${{ steps.lint_php.outcome == 'failure' }} + if: ${{ steps.check_php_cs.outcome == 'failure' }} run: cs2pr ./phpcs-report.xml