Skip to content

Commit

Permalink
Merge pull request #6436 from guardian/playwright-cron-alarm-message
Browse files Browse the repository at this point in the history
Playwright - update cron alarm message
  • Loading branch information
andrewHEguardian authored Oct 22, 2024
2 parents a2f0d43 + 1c72f43 commit a2f3ab3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/playwright-cron.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Playwright Cron Tests
on:
workflow_dispatch:
workflow_dispatch:
schedule:
# every hour, 9-17:00, Mon - Fri
- cron: "0 9-17 * * 1-5"
Expand Down Expand Up @@ -36,4 +36,4 @@ jobs:
run: |
failedWorkflowRun="https://github.com/guardian/support-frontend/actions/runs/$GITHUB_RUN_ID"
prTrigger="https://github.com/guardian/support-frontend/pull/${{ github.event.number }}"
curl -X POST -H "Content-Type: application/json" "$GOOGLE_CHAT_WEB_HOOK" -d '{"text": "🚨 The Playwright cron tests for support-frontend have failed 🚨\n\n- <'"$failedWorkflowRun"'|You can see the reason for this failure on GitHub>. \n- <'"$prTrigger"'|PR that triggered this>.\n\n πŸ“– <https://github.com/guardian/support-frontend/wiki/Post-deployment-test-runbook|Check the runbook for a step by step guide>"}'
curl -X POST -H "Content-Type: application/json" "$GOOGLE_CHAT_WEB_HOOK" -d '{"text": "🚨 The Playwright cron tests for support-frontend have failed 🚨\n\n- <'"$failedWorkflowRun"'|You can see the reason for this failure on GitHub>. \n\n πŸ“– <https://github.com/guardian/support-frontend/wiki/Post-deployment-test-runbook|Check the runbook for a step by step guide>"}'

0 comments on commit a2f3ab3

Please sign in to comment.