Skip to content

News Bot

News Bot #46

Workflow file for this run

name: News Bot
on:
push:
branches: [main]
schedule:
- cron: '0 */3 * * *'
workflow_dispatch:
jobs:
run-bot:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install -r requirements.txt
- name: Run bot
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
UNSPLASH_ACCESS_KEY: ${{ secrets.UNSPLASH_ACCESS_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
run: python run_job.py