From 88bfcdffc4d63ccb22be7d43a17ae0a7724bbcc5 Mon Sep 17 00:00:00 2001 From: sokumon Date: Tue, 2 Dec 2025 17:23:23 +0530 Subject: [PATCH] fix: check if the video directories is empty --- .github/workflows/_base-ui-tests.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/_base-ui-tests.yml b/.github/workflows/_base-ui-tests.yml index 40e0db903d..d504158cbb 100644 --- a/.github/workflows/_base-ui-tests.yml +++ b/.github/workflows/_base-ui-tests.yml @@ -129,8 +129,10 @@ jobs: name: coverage-js-${{ matrix.index }} path: ./apps/${{ github.event.repository.name }}/.cypress-coverage/clover.xml - name: Compress Cypress Videos - run: | - zip -r cypress_recordings.zip ./cypressVideos + run: | + if find ./cypressVideos -mindepth 1 | read; then + zip -r cypress_recordings.zip ./cypressVideos + fi - name: Upload Cypress Videos uses: actions/upload-artifact@v5 with: