From e87401ef4561d57cd898ce788c5aacf17b5ae225 Mon Sep 17 00:00:00 2001 From: mahula Date: Tue, 31 Jan 2023 16:21:16 +0100 Subject: [PATCH] fix screenshot upload after failing tests --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7957601c1..78271a6f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -664,7 +664,7 @@ jobs: yarn yarn run cypress run --spec cypress/e2e/User.Authentication.feature,User.Authentication.ResetPassword.feature - name: End-to-end tests | if tests failed, upload screenshots - if: steps.e2e-tests.outcome == 'failure' + if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} uses: actions/upload-artifact@v3 with: name: cypress-screenshots