Daily Telegram Post #69
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: Daily Telegram Post | |
| on: | |
| schedule: | |
| - cron: '30 9 * * *' # Runs at 9:30 UTC daily | |
| workflow_dispatch: # Allows manual trigger | |
| push: | |
| branches: [ main ] # Triggers on push to main branch | |
| jobs: | |
| post: | |
| runs-on: ubuntu-latest # Using GitHub-hosted runner instead of self-hosted | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - name: Set up Python | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: '3.10' | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: Run poster script | |
| env: | |
| GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }} | |
| TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} | |
| TELEGRAM_CHANNEL_ID: ${{ secrets.TELEGRAM_CHANNEL_ID }} | |
| TELEGRAM_CHANNEL_USERNAME: ${{ secrets.TELEGRAM_CHANNEL_USERNAME }} | |
| CONTENT_TOPICS: ${{ secrets.CONTENT_TOPICS }} | |
| run: python src/main.py |