From eeae52bbf99cdb3218bc908dcd49d66c387e892d Mon Sep 17 00:00:00 2001 From: MitulDavid Date: Wed, 22 Sep 2021 19:07:32 +0530 Subject: [PATCH] ci: Use file-existence-action instead of hashFiles() --- .github/workflows/ui-tests.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ui-tests.yml b/.github/workflows/ui-tests.yml index 44316043cb..2e8aca4e31 100644 --- a/.github/workflows/ui-tests.yml +++ b/.github/workflows/ui-tests.yml @@ -140,8 +140,14 @@ jobs: env: CYPRESS_RECORD_KEY: 4a48f41c-11b3-425b-aa88-c58048fa69eb + - name: Check If Coverage Report Exists + id: check_coverage + uses: andstor/file-existence-action@v1 + with: + files: "/home/runner/frappe-bench/apps/frappe/.cypress-coverage/clover.xml" + - name: Upload Coverage Data - if: ${{ steps.check-build.outputs.build == 'strawberry' && hashFiles('/home/runner/frappe-bench/apps/frappe/.cypress-coverage/clover.xml') != '' }} + if: ${{ steps.check-build.outputs.build == 'strawberry' && steps.check_coverage.outputs.files_exists == 'true' }} uses: codecov/codecov-action@v2 with: name: Cypress