Skip to content

Commit 05079ee

Browse files
committed
chore(ci): update reminders workflow
1 parent 4c8cb08 commit 05079ee

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/reminders.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,11 @@ on:
1111
- cron: '0 4 27 * *'
1212
# Runs on the 30th of every month at 2 PM (Beijing time, UTC+8).
1313
# Converted to UTC, 2 PM Beijing time is 6 AM UTC.
14-
- cron: '0 6 30 * *' # <--- ADDED THIS LINE
14+
- cron: '0 6 30 * *'
15+
# Runs every day at 1 AM Beijing time (5 PM UTC the previous day).
16+
- cron: '0 17 * * *'
17+
# Runs every day at 11 AM Beijing time (3 AM UTC).
18+
- cron: '0 3 * * *'
1519
workflow_dispatch: # Allows manual triggering
1620

1721
concurrency:
@@ -39,7 +43,7 @@ jobs:
3943
python -m pip install --upgrade pip
4044
pip install -r requirements.simple.txt
4145
42-
- name: Run Telegram script for daily reminders
46+
- name: Run Telegram script for daily punch card reminders
4347
env:
4448
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
4549
run: python scripts/release/reminders_bot.py --job send_message --message "Punch card in WeCom"
@@ -55,7 +59,19 @@ jobs:
5559
env:
5660
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
5761
run: python scripts/release/reminders_bot.py --job send_message --message "Check salary"
58-
if: github.event.schedule == '0 6 30 * *' # <--- ADDED THIS STEP
62+
if: github.event.schedule == '0 6 30 * *'
63+
64+
- name: Run Telegram script for sleep reminder
65+
env:
66+
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
67+
run: python scripts/release/reminders_bot.py --job send_message --message "Time to sleep!"
68+
if: github.event.schedule == '0 17 * * *'
69+
70+
- name: Run Telegram script for wake up reminder
71+
env:
72+
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
73+
run: python scripts/release/reminders_bot.py --job send_message --message "Time to wake up!"
74+
if: github.event.schedule == '0 3 * * *'
5975

6076
- name: Run Telegram script for test message
6177
env:

0 commit comments

Comments
 (0)