Use remote branch for diff

This commit is contained in:
Kelly Dwan 2020-12-10 11:08:40 -05:00
parent 6844c58b44
commit 4e5402c9e0
No known key found for this signature in database
GPG key ID: 8BA5575F3D11575D

View file

@ -46,7 +46,7 @@ jobs:
- name: Run PHPCS on all Core files - name: Run PHPCS on all Core files
run: | run: |
touch $GITHUB_WORKSPACE/tmp.php touch $GITHUB_WORKSPACE/tmp.php
export CHANGED_FILES=$(git diff --name-only --diff-filter=AM ${{ github.base_ref }} | tr '\n' ' ') export CHANGED_FILES=$(git diff --name-only --diff-filter=AM remotes/origin/${{ github.base_ref }} | tr '\n' ' ')
composer run-script phpcs $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) -- -n | cs2pr composer run-script phpcs $GITHUB_WORKSPACE/tmp.php $(echo $CHANGED_FILES) -- -n | cs2pr
phpunit: phpunit: