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