From c27b42d47a6d247484ad659e608db053f45c66b1 Mon Sep 17 00:00:00 2001 From: "Aman Kumar [SSW]" <71385247+amankumarrr@users.noreply.github.com> Date: Fri, 29 Mar 2024 13:53:05 +1100 Subject: [PATCH] Adding failure step to get the outcome --- .github/workflows/template-ui-tests.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/template-ui-tests.yml b/.github/workflows/template-ui-tests.yml index fa4c31dce0..3a58dbaa0e 100644 --- a/.github/workflows/template-ui-tests.yml +++ b/.github/workflows/template-ui-tests.yml @@ -48,10 +48,18 @@ jobs: retry-delay: 10s - name: Run Playwright tests + id: run run: npx playwright test ${{ inputs.tests_to_run }}seo-prs env: HOST_URL: ${{ inputs.deploy_url }} + - name: Run on failure + id: failure + if: failure() && steps.run.outcome == 'failure' + run: | + echo " This is output of preivous job ${{ steps.run.outcome }}" + echo "testPassed='False'" >> $env:GITHUB_OUTPUT + - uses: actions/upload-artifact@v4 if: always() id: artifact-report