From 6b2e38ae85170bbc88f65c6cecd8337cfd0c55a0 Mon Sep 17 00:00:00 2001 From: Marcelo de Moraes Serpa Date: Mon, 13 Jul 2020 16:08:28 -0500 Subject: [PATCH] Fix workflow logic to not run phpcs for deleted files --- .github/workflows/full-site-editing-plugin.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/full-site-editing-plugin.yml b/.github/workflows/full-site-editing-plugin.yml index c49652d16abb4c..c794789311bcca 100644 --- a/.github/workflows/full-site-editing-plugin.yml +++ b/.github/workflows/full-site-editing-plugin.yml @@ -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