Skip to content

Commit

Permalink
Fix workflow logic to not run phpcs for deleted files
Browse files Browse the repository at this point in the history
  • Loading branch information
fullofcaffeine committed Jul 14, 2020
1 parent ce6611d commit 6b2e38a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/full-site-editing-plugin.yml
Original file line number Diff line number Diff line change
Expand Up @@ -133,11 +133,8 @@ jobs:
with:
token: ${{ secrets.GITHUB_TOKEN }}

- name: Displaying changed files
run: echo ${{ join( fromJson( steps.changes.outputs.all ) ) }}

- name: Execute phpcs on changed files
run: ./vendor/bin/phpcs --standard=apps/phpcs.xml ${{ join( fromJson( steps.changes.outputs.all ), ' ' ) }}
run: ./vendor/bin/phpcs --standard=apps/phpcs.xml ${{ join( fromJson( steps.changes.outputs.modified ), ' ' ) }} ${{ join( fromJson( steps.changes.outputs.added ), ' ' ) }}
if: ${{ steps.changes.outputs.all != '' }}

- name: No changes found
Expand Down

0 comments on commit 6b2e38a

Please sign in to comment.