File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Test Slack Frontend Deploy
2+
3+ on :
4+ workflow_dispatch :
5+
6+ jobs :
7+ test-slack :
8+ name : Test Slack Notification
9+ runs-on : ubuntu-latest
10+
11+ steps :
12+ - name : Send smoke test notification
13+ env :
14+ SLACK_WEBHOOK_URL : ${{ secrets.SLACK_FRONTEND_DEPLOY_WEBHOOK }}
15+ run : |
16+ curl -sS -X POST \
17+ -H 'Content-type: application/json' \
18+ --data '{
19+ "text": "🧪 Production smoke test required",
20+ "blocks": [
21+ {
22+ "type": "header",
23+ "text": {
24+ "type": "plain_text",
25+ "text": "🧪 Production smoke test required"
26+ }
27+ },
28+ {
29+ "type": "section",
30+ "text": {
31+ "type": "mrkdwn",
32+ "text": "The frontend has been successfully deployed to production. Please verify the application directly in production."
33+ }
34+ },
35+ {
36+ "type": "actions",
37+ "elements": [
38+ {
39+ "type": "button",
40+ "text": {
41+ "type": "plain_text",
42+ "text": "Open Production"
43+ },
44+ "url": "https://app.flagsmith.com"
45+ }
46+ ]
47+ }
48+ ]
49+ }' \
50+ "$SLACK_WEBHOOK_URL"
You can’t perform that action at this time.
0 commit comments