Update Telegram Countdown + Photo #197
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Update Telegram Countdown + Photo | |
| on: | |
| schedule: | |
| - cron: "0 16 * * *" # midnight UTC+8 | |
| workflow_dispatch: | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install ImageMagick | |
| run: sudo apt-get update && sudo apt-get install -y imagemagick | |
| - name: Run Countdown + Update | |
| env: | |
| BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} | |
| START_DATE: ${{ secrets.TELEGRAM_START_DATE }} | |
| TARGET_DATE: ${{ secrets.TELEGRAM_TARGET_DATE }} | |
| run: | | |
| chmod +x ./convert-and-upload.sh | |
| ./convert-and-upload.sh |