From f0003c60f40f7a93f2bc04ccb82436f71fbf4056 Mon Sep 17 00:00:00 2001 From: Jonathan Desrosiers Date: Fri, 6 Oct 2023 08:36:14 -0400 Subject: [PATCH] Try one liner one more time. --- .github/workflows/test-and-zip-default-themes.yml | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-and-zip-default-themes.yml b/.github/workflows/test-and-zip-default-themes.yml index b55e306e0e8e9..8b9eaa38da455 100644 --- a/.github/workflows/test-and-zip-default-themes.yml +++ b/.github/workflows/test-and-zip-default-themes.yml @@ -93,10 +93,8 @@ jobs: show-progress: ${{ runner.debug == '1' && 'true' || 'false' }} - name: Find zero-byte files - run: find src/wp-content/themes/${{ matrix.theme }} -empty -delete - - - name: Ensure version-controlled files are not modified or deleted - run: git diff --exit-code + run: | + [[ ! $(find src/wp-content/themes/${{ matrix.theme }} -empty) ]] # Tests the build script for themes that have one. #