Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
Platane committed Mar 15, 2024
1 parent 222fd71 commit a91a349
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/recuring-live-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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
Expand Down

0 comments on commit a91a349

Please sign in to comment.