From 306f01845e670438c63b6922de4b38a8e6acc1f5 Mon Sep 17 00:00:00 2001 From: mahula Date: Thu, 6 Jul 2023 14:58:13 +0200 Subject: [PATCH] use pr number for e2e test report zip --- .github/workflows/test_e2e.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test_e2e.yml b/.github/workflows/test_e2e.yml index 76ce35ea7..569ff5cd5 100644 --- a/.github/workflows/test_e2e.yml +++ b/.github/workflows/test_e2e.yml @@ -60,10 +60,14 @@ jobs: cd e2e-tests/ node create-cucumber-html-report.js + - name: End-to-end tests | if tests failed, get pr number + id: pr + if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} + uses: 8BitJonny/gh-get-current-pr@2.2.0 + - name: End-to-end tests | if tests failed, upload report id: e2e-report if: ${{ failure() && steps.e2e-tests.conclusion == 'failure' }} - uses: 8BitJonny/gh-get-current-pr@2.2.0 uses: actions/upload-artifact@v3 with: name: cypress-report-pr-#${{ steps.e2e-report.outputs.number }}