Skip to content

Commit b3f7376

Browse files
committed
chore(ci): update reminders workflow
1 parent bfebc57 commit b3f7376

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/reminders.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@ on:
2020
- cron: '0 13 * * 2-4'
2121
# Reminds to go to own house next day: 9 PM Beijing Time (1 PM UTC) on Sun, Mon, Fri, Sat.
2222
- cron: '0 13 * * 0,1,5,6'
23-
# New: Reminds to buy fresh produce direct from the source in JD.com: 9 PM Beijing Time (1 PM UTC) on Wednesday.
23+
# Reminds to buy fresh produce direct from the source in JD.com: 9 PM Beijing Time (1 PM UTC) on Wednesday.
2424
- cron: '0 13 * * 3'
25+
# New: Reminds to buy food that is quick delivered from JD.com: 9 PM Beijing Time (1 PM UTC) on Friday.
26+
- cron: '0 13 * * 5'
2527
workflow_dispatch: # Allows manual triggering
2628

2729
concurrency:
@@ -82,21 +84,27 @@ jobs:
8284
- name: Run Telegram script for parents' house reminder
8385
env:
8486
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
85-
run: python scripts/release/reminders_bot.py --job send_message --message "Reminder, Go to house of parents tomorrow!"
87+
run: python scripts/release/reminders_bot.py --job send_message --message "Go to house of parents tomorrow!"
8688
if: github.event.schedule == '0 13 * * 2-4'
8789

8890
- name: Run Telegram script for own house reminder
8991
env:
9092
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
91-
run: python scripts/release/reminders_bot.py --job send_message --message "Reminder, Go to your house tomorrow!"
93+
run: python scripts/release/reminders_bot.py --job send_message --message "Go to your house tomorrow!"
9294
if: github.event.schedule == '0 13 * * 0,1,5,6'
9395

9496
- name: Run Telegram script for JD.com fresh produce reminder
9597
env:
9698
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
97-
run: python scripts/release/reminders_bot.py --job send_message --message "Reminder, Buy fresh produce direct from the source in JD.com!"
99+
run: python scripts/release/reminders_bot.py --job send_message --message "Buy fresh produce direct from the source in JD.com!"
98100
if: github.event.schedule == '0 13 * * 3'
99101

102+
- name: Run Telegram script for JD.com quick delivery food reminder
103+
env:
104+
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
105+
run: python scripts/release/reminders_bot.py --job send_message --message "Buy quick delivery food from JD.com!"
106+
if: github.event.schedule == '0 13 * * 5'
107+
100108
- name: Run Telegram script for test message
101109
env:
102110
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}

0 commit comments

Comments
 (0)