Recuring live test #55
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Recuring live test | |
on: | |
schedule: | |
- cron: "0 12 */3 * *" | |
workflow_dispatch: | |
inputs: | |
app_url: | |
type: string | |
description: url to test | |
default: https://timezone.rocks | |
required: true | |
jobs: | |
e2e: | |
uses: ./.github/workflows/_test-e2e.yml | |
with: | |
APP_URL: ${{ inputs.app_url || 'https://timezone.rocks' }} | |
secrets: inherit | |
notify: | |
runs-on: ubuntu-latest | |
needs: [e2e] | |
if: failure() | |
steps: | |
- name: Create issue | |
if: github.event_name == 'schedule' | |
run: | | |
BODY="🚨 e2e test failed [report](${{ needs.e2e.outputs.report_url }}) [run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}) [app](${{ inputs.app_url || 'https://timezone.rocks' }})" | |
gh issue create --body "$BODY" --assignee ${{ github.repository_owner }} --label bug --title "🚨 e2e test failed" | |
env: | |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
GH_REPO: ${{ github.repository }} |