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 - name: Fetch & inject content run: python scripts/fetch_content.py - 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 push