diff --git a/.github/workflows/phpcs.yml b/.github/workflows/phpcs.yml index e0ba7b6b..8af2168d 100644 --- a/.github/workflows/phpcs.yml +++ b/.github/workflows/phpcs.yml @@ -44,7 +44,7 @@ jobs: - name: Run PHP_CodeSniffer if: ${{ steps.changed-files.outputs.any_changed == 'true' }} - un: | + run: | HEAD_REF=$(git rev-parse HEAD) git checkout $HEAD_REF phpcs-changed -s --git --git-base ${{ github.base_ref }} ${{ steps.changed-files.outputs.all_changed_files }}