From a91a349efd88d83e1b77ad8066732ab843374760 Mon Sep 17 00:00:00 2001 From: platane Date: Fri, 15 Mar 2024 12:58:11 +0100 Subject: [PATCH] . --- .github/workflows/recuring-live-test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/recuring-live-test.yml b/.github/workflows/recuring-live-test.yml index a181f81..7e04cae 100644 --- a/.github/workflows/recuring-live-test.yml +++ b/.github/workflows/recuring-live-test.yml @@ -45,10 +45,14 @@ jobs: if: steps.status.outputs.failed - name: upload html report + id: report-upload if: steps.status.outputs.failed run: | bunx playwright merge-reports --reporter html blob-report - bunx wrangler pages deploy playwright-report --project-name=timezone-rocks + bunx wrangler pages deploy playwright-report --project-name=timezone-rocks | tee deploy_out.txt + URL=`cat deploy_out.txt | grep -Eo "https://[^ ]*"` + echo $URL + echo url=$URL >> "$GITHUB_OUTPUT" env: CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }} CLOUDFLARE_API_TOKEN: ${{ secrets.CLOUDFLARE_PUBLISH_TOKEN }} @@ -57,7 +61,7 @@ jobs: if: steps.status.outputs.failed # if: steps.status.outputs.failed && github.event_name == 'schedule' run: | - echo "🚨 e2e test failed [run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> body.txt + echo "🚨 e2e test failed [report](${{ steps.report-upload.outputs.url }}) [run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) [app](${{ inputs.app_url || 'https://timezone.rocks' }})" >> body.txt echo "\`\`\`" >> body.txt cat report.txt >> body.txt echo "\`\`\`" >> body.txt