Skip to content

Commit bfebc57

Browse files
committed
ci(reminders): update workflow file
1 parent e9a0ef6 commit bfebc57

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/reminders.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ 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.
24+
- cron: '0 13 * * 3'
2325
workflow_dispatch: # Allows manual triggering
2426

2527
concurrency:
@@ -89,6 +91,12 @@ jobs:
8991
run: python scripts/release/reminders_bot.py --job send_message --message "Reminder, Go to your house tomorrow!"
9092
if: github.event.schedule == '0 13 * * 0,1,5,6'
9193

94+
- name: Run Telegram script for JD.com fresh produce reminder
95+
env:
96+
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!"
98+
if: github.event.schedule == '0 13 * * 3'
99+
92100
- name: Run Telegram script for test message
93101
env:
94102
TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}

0 commit comments

Comments
 (0)