Skip to content

Daily AI News

Daily AI News #130

Workflow file for this run

name: Daily AI News
on:
schedule:
- cron: "0 0 * * *" # 5:30 AM IST (00:00 UTC)
workflow_dispatch:
jobs:
ai-news:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install openai tavily-python
- name: Fetch AI news
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }}
run: python scripts/fetch_ai_news.py
- name: Commit and push
run: |
git config user.name "padmanabhan-r"
git config user.email "53633680+padmanabhan-r@users.noreply.github.com"
git add *-ai-news.md
git diff --cached --quiet || git commit -m "docs: daily AI news"
git push