Skip to content

Recuring live test

Recuring live test #21

name: Recuring live test
on:
deployment_status:
schedule:
- cron: "0 12 * * *"
workflow_dispatch:
jobs:
e2e:
uses: ./.github/workflows/_test-e2e.yml
with:
APP_URL: "https://timezone.rocks"
report:
runs-on: ubuntu-latest
needs: [e2e]
steps:
- uses: actions/download-artifact@v4
with:
path: blob-report
pattern: blob-report-*
merge-multiple: true
- run: echo report=`bunx playwright merge-reports --reporter line blob-report` >> "$GITHUB_OUTPUT"
id: report
- run: echo ${{ steps.report.outputs.report }}
- run: echo test failed
if: contains(steps.report.outputs.report,'✘')
- run: gh issue comment "$NUMBER" --body "$BODY"
# if: contains(steps.report.outputs.report,'✘')
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_REPO: ${{ github.repository }}
NUMBER: 15
BODY: ${{ steps.report.outputs.report }}