|
20 | 20 | - cron: '0 13 * * 2-4'
|
21 | 21 | # Reminds to go to own house next day: 9 PM Beijing Time (1 PM UTC) on Sun, Mon, Fri, Sat.
|
22 | 22 | - 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. |
24 | 24 | - 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' |
25 | 27 | workflow_dispatch: # Allows manual triggering
|
26 | 28 |
|
27 | 29 | concurrency:
|
@@ -82,21 +84,27 @@ jobs:
|
82 | 84 | - name: Run Telegram script for parents' house reminder
|
83 | 85 | env:
|
84 | 86 | 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!" |
86 | 88 | if: github.event.schedule == '0 13 * * 2-4'
|
87 | 89 |
|
88 | 90 | - name: Run Telegram script for own house reminder
|
89 | 91 | env:
|
90 | 92 | 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!" |
92 | 94 | if: github.event.schedule == '0 13 * * 0,1,5,6'
|
93 | 95 |
|
94 | 96 | - name: Run Telegram script for JD.com fresh produce reminder
|
95 | 97 | env:
|
96 | 98 | 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!" |
98 | 100 | if: github.event.schedule == '0 13 * * 3'
|
99 | 101 |
|
| 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 | + |
100 | 108 | - name: Run Telegram script for test message
|
101 | 109 | env:
|
102 | 110 | TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
|
|
0 commit comments