From a41f9764b492e127596d7ce7e08373661f64699c Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 14 Dec 2023 15:11:08 -0500 Subject: [PATCH] only take action if there are screenshots --- .github/workflows/actions/test-e2e/action.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/actions/test-e2e/action.yml b/.github/workflows/actions/test-e2e/action.yml index d0c564c2c..6a0fa2ca1 100644 --- a/.github/workflows/actions/test-e2e/action.yml +++ b/.github/workflows/actions/test-e2e/action.yml @@ -55,10 +55,8 @@ runs: npx playwright test --shard=${{ inputs.shard }}/${{ inputs.totalShards }} --update-snapshots git add src/\*.png --force mkdir updated-screenshots - echo 'made dir' rsync -R --progress $(git diff --name-only --cached) updated-screenshots - echo 'copied images' - if [ -d updated-screenshots ]; then + if [ "$(ls -A updated-screenshots)" ]; then echo "hasUpdatedScreenshots=$(echo 'true')" >> $GITHUB_OUTPUT cd updated-screenshots ls