Files

48 lines
1.3 KiB
YAML

name: Daily Financial Dashboard Update
on:
schedule:
# Pre-market: 08:00 ET (12:00 UTC) — every day
- cron: '0 12 * * *'
# Post-market: 18:00 ET (22:00 UTC) — weekdays only
- cron: '0 22 * * 1-5'
workflow_dispatch:
permissions:
contents: write
jobs:
update:
runs-on: ubuntu-latest
env:
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
ANTHROPIC_MODEL: ${{ vars.ANTHROPIC_MODEL || 'claude-sonnet-4-5' }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install anthropic json-repair requests
- name: Fetch & inject content
run: python scripts/fetch_content.py
- name: Send Telegram briefing
run: python scripts/send_briefing.py
continue-on-error: true
- name: Commit and push
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -A
git diff --cached --quiet || git commit -m "chore: daily update $(date -u +'%Y-%m-%d %H:%M UTC')"
git pull --rebase origin main
git push