@@ -2,10 +2,10 @@ name: Reminders
2
2
3
3
on :
4
4
schedule :
5
- # Runs every 2 hours from 12 PM to 8 PM (Beijing time, UTC+8) from Monday to Friday.
6
- # Converted to UTC, 12 PM to 8 PM UTC.
7
- # Minute 0, Hours 4, 6, 8, 10, 12 (UTC), Any day of month, Any month, Days of week 1 -5 (Monday to Friday)
8
- - cron : ' 0 4,6,8,10,12 * * 1 -5'
5
+ # Runs every 2 hours from 12 PM to 8 PM (Beijing time, UTC+8) from Wednesday to Friday.
6
+ # Converted to UTC, 12 PM to 8 PM UTC is 4 AM to 12 PM UTC .
7
+ # Minute 0, Hours 4, 6, 8, 10, 12 (UTC), Any day of month, Any month, Days of week 3 -5 (Wednesday to Friday)
8
+ - cron : ' 0 4,6,8,10,12 * * 3 -5'
9
9
# Runs on the 27th of every month at 12 PM (Beijing time, UTC+8).
10
10
# Converted to UTC, 12 PM Beijing time is 4 AM UTC.
11
11
- cron : ' 0 4 27 * *'
16
16
- cron : ' 0 17 * * *'
17
17
# Runs every day at 11 AM Beijing time (3 AM UTC).
18
18
- cron : ' 0 3 * * *'
19
+ # Reminds to go to parents' house next day: 9 PM Beijing Time (1 PM UTC) on Tue, Wed, Thu.
20
+ - cron : ' 0 13 * * 2-4'
21
+ # Reminds to go to own house next day: 9 PM Beijing Time (1 PM UTC) on Sun, Mon, Fri, Sat.
22
+ - cron : ' 0 13 * * 0,1,5,6'
19
23
workflow_dispatch : # Allows manual triggering
20
24
21
25
concurrency :
47
51
env :
48
52
TELEGRAM_BOT2_API_KEY : ${{ secrets.TELEGRAM_BOT2_API_KEY }}
49
53
run : python scripts/release/reminders_bot.py --job send_message --message "Punch card in WeCom"
50
- if : github.event.schedule == '0 4,6,8,10,12 * * 1 -5'
54
+ if : github.event.schedule == '0 4,6,8,10,12 * * 3 -5'
51
55
52
56
- name : Run Telegram script for monthly mortgage reminder
53
57
env :
73
77
run : python scripts/release/reminders_bot.py --job send_message --message "Time to wake up!"
74
78
if : github.event.schedule == '0 3 * * *'
75
79
80
+ - name : Run Telegram script for parents' house reminder
81
+ env :
82
+ TELEGRAM_BOT2_API_KEY : ${{ secrets.TELEGRAM_BOT2_API_KEY }}
83
+ run : python scripts/release/reminders_bot.py --job send_message --message "Reminder, Go to house of parents tomorrow!"
84
+ if : github.event.schedule == '0 13 * * 2-4'
85
+
86
+ - name : Run Telegram script for own house reminder
87
+ env :
88
+ TELEGRAM_BOT2_API_KEY : ${{ secrets.TELEGRAM_BOT2_API_KEY }}
89
+ run : python scripts/release/reminders_bot.py --job send_message --message "Reminder, Go to your house tomorrow!"
90
+ if : github.event.schedule == '0 13 * * 0,1,5,6'
91
+
76
92
- name : Run Telegram script for test message
77
93
env :
78
94
TELEGRAM_BOT2_API_KEY : ${{ secrets.TELEGRAM_BOT2_API_KEY }}
0 commit comments