Fixed PHPCS Base Comparison

This commit is contained in:
Christopher Allford 2023-09-26 11:40:38 -07:00
parent 94660e0476
commit 7de08e1751
1 changed files with 3 additions and 7 deletions

View File

@ -26,11 +26,10 @@ jobs:
- name: Get Changed Files
id: changed-files
uses: tj-actions/changed-files@v32
uses: tj-actions/changed-files@v39
with:
path: plugins/woocommerce
files: |
**/*.php
files: "**/*.php"
- name: Setup WooCommerce Monorepo
if: steps.changed-files.outputs.any_changed == 'true'
@ -49,7 +48,4 @@ jobs:
- name: Run PHPCS
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: plugins/woocommerce
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 }}
run: phpcs-changed -s --git --git-base ${{ github.event.pull_request.base.sha }} ${{ steps.changed-files.outputs.all_changed_files }}