-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (59 loc) · 3.46 KB
/
wedding-day-notifications.yml
File metadata and controls
65 lines (59 loc) · 3.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: 📢 Wedding Day Notifications
on:
workflow_dispatch:
permissions:
issues: write
contents: read
jobs:
wedding-day-alerts:
runs-on: ubuntu-latest
if: contains(github.event.issue.labels.*.name, 'wedding-day-critical') || github.event_name == 'schedule'
steps:
- name: Alert on Wedding Day Critical Issues
if: contains(github.event.issue.labels.*.name, 'wedding-day-critical')
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '⚠️ **WEDDING DAY CRITICAL ALERT** ⚠️\n\nThis issue has been flagged as wedding day critical and requires immediate attention!\n\n📞 **Emergency Contacts:**\n- Primary: codestromhub@gmail.com\n- Phone: +880 1234-567890\n- Developer: @syed-reza98\n\n🔴 **Action Required:**\n- [ ] Immediate assessment\n- [ ] Impact analysis\n- [ ] Emergency fix if needed\n- [ ] Communication to couple\n\n*This is a high-priority automated alert for Incia & Arvin\'s wedding website.*'
})
- name: Daily Status Check
if: github.event_name == 'schedule'
uses: actions/github-script@v7
with:
script: |
// Get all open critical issues
const { data: issues } = await github.rest.issues.listForRepo({
owner: context.repo.owner,
repo: context.repo.repo,
labels: 'wedding-day-critical',
state: 'open'
});
if (issues.length > 0) {
// Create daily status issue
await github.rest.issues.create({
owner: context.repo.owner,
repo: context.repo.repo,
title: `📊 Daily Wedding Status Report - ${new Date().toISOString().split('T')[0]}`,
body: `# 🎯 Wedding Day Readiness Report\n\n## ⚠️ Critical Issues (${issues.length})\n\n${issues.map(issue => `- #${issue.number}: ${issue.title}`).join('\n')}\n\n## 📈 System Status\n- Website: 🟢 Operational\n- RSVP System: 🟢 Functional\n- Admin Dashboard: 🟢 Available\n- Email Notifications: 🟢 Working\n\n## 🎊 Wedding Countdown\nDays until Incia & Arvin's wedding: **[Manual Update Required]**\n\n---\n*Automated daily report - resolve critical issues ASAP!*`,
labels: ['status-report', 'automated'],
assignees: ['syed-reza98']
});
}
deployment-success:
runs-on: ubuntu-latest
if: contains(github.event.issue.title, '[DEPLOY]') && github.event.action == 'closed'
steps:
- name: Deployment Success Notification
uses: actions/github-script@v7
with:
script: |
github.rest.issues.createComment({
issue_number: context.issue.number,
owner: context.repo.owner,
repo: context.repo.repo,
body: '🚀 **Deployment Successful!** 🚀\n\n✅ The wedding website has been updated successfully!\n\n**Post-Deployment Status:**\n- [ ] Website loading verified\n- [ ] RSVP system tested\n- [ ] Mobile compatibility confirmed\n- [ ] Admin access validated\n\n📢 **Communication:**\n- Couple has been notified\n- Wedding party informed\n- Social media announcement posted\n\n🎉 **Ready for Incia & Arvin\'s Special Day!**\n\n*Automated deployment success notification*'
})