Fixed PHPCS Base Comparison
This commit is contained in:
parent
94660e0476
commit
7de08e1751
|
@ -26,11 +26,10 @@ jobs:
|
||||||
|
|
||||||
- name: Get Changed Files
|
- name: Get Changed Files
|
||||||
id: changed-files
|
id: changed-files
|
||||||
uses: tj-actions/changed-files@v32
|
uses: tj-actions/changed-files@v39
|
||||||
with:
|
with:
|
||||||
path: plugins/woocommerce
|
path: plugins/woocommerce
|
||||||
files: |
|
files: "**/*.php"
|
||||||
**/*.php
|
|
||||||
|
|
||||||
- name: Setup WooCommerce Monorepo
|
- name: Setup WooCommerce Monorepo
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
|
@ -49,7 +48,4 @@ jobs:
|
||||||
- name: Run PHPCS
|
- name: Run PHPCS
|
||||||
if: steps.changed-files.outputs.any_changed == 'true'
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
working-directory: plugins/woocommerce
|
working-directory: plugins/woocommerce
|
||||||
run: |
|
run: phpcs-changed -s --git --git-base ${{ github.event.pull_request.base.sha }} ${{ steps.changed-files.outputs.all_changed_files }}
|
||||||
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 }}
|
|
||||||
|
|
Loading…
Reference in New Issue