Skip to content

Commit 4a08fda

Browse files
committed
chore: add test for frontend deploy notif channel
1 parent 227fce1 commit 4a08fda

1 file changed

Lines changed: 50 additions & 0 deletions

File tree

Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
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"

0 commit comments

Comments
 (0)