|
11 | 11 | - cron: '0 4 27 * *'
|
12 | 12 | # Runs on the 30th of every month at 2 PM (Beijing time, UTC+8).
|
13 | 13 | # 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 * * *' |
15 | 19 | workflow_dispatch: # Allows manual triggering
|
16 | 20 |
|
17 | 21 | concurrency:
|
|
39 | 43 | python -m pip install --upgrade pip
|
40 | 44 | pip install -r requirements.simple.txt
|
41 | 45 |
|
42 |
| - - name: Run Telegram script for daily reminders |
| 46 | + - name: Run Telegram script for daily punch card reminders |
43 | 47 | env:
|
44 | 48 | TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
|
45 | 49 | run: python scripts/release/reminders_bot.py --job send_message --message "Punch card in WeCom"
|
|
55 | 59 | env:
|
56 | 60 | TELEGRAM_BOT2_API_KEY: ${{ secrets.TELEGRAM_BOT2_API_KEY }}
|
57 | 61 | 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 * * *' |
59 | 75 |
|
60 | 76 | - name: Run Telegram script for test message
|
61 | 77 | env:
|
|
0 commit comments