- agent.py: portfolio_daily_analysis() for daily Slack block, weekly_strategic_analysis() for deep weekly report - run.py: call portfolio analysis before Slack send - slack_reporter.py: add strategic diagnosis block at end of daily report - weekly_report.py: standalone weekly report script - .github/workflows/weekly.yml: runs Mondays at 9am (CEST) Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
36 lines
1.1 KiB
YAML
36 lines
1.1 KiB
YAML
name: Weekly Strategic Report
|
|
|
|
on:
|
|
schedule:
|
|
- cron: '0 7 * * 1' # Lunes 9:00 AM hora española (CEST/UTC+2)
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
run:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
|
|
- name: Install dependencies
|
|
run: pip install -r requirements.txt
|
|
|
|
- name: Run weekly report
|
|
env:
|
|
AIRTABLE_TOKEN: ${{ secrets.AIRTABLE_TOKEN }}
|
|
AIRTABLE_BASE_ID: ${{ secrets.AIRTABLE_BASE_ID }}
|
|
GOOGLE_ADS_DEVELOPER_TOKEN: ${{ secrets.GOOGLE_ADS_DEVELOPER_TOKEN }}
|
|
GOOGLE_ADS_CLIENT_ID: ${{ secrets.GOOGLE_ADS_CLIENT_ID }}
|
|
GOOGLE_ADS_CLIENT_SECRET: ${{ secrets.GOOGLE_ADS_CLIENT_SECRET }}
|
|
GOOGLE_ADS_REFRESH_TOKEN: ${{ secrets.GOOGLE_ADS_REFRESH_TOKEN }}
|
|
GOOGLE_ADS_LOGIN_CUSTOMER_ID: ${{ secrets.GOOGLE_ADS_LOGIN_CUSTOMER_ID }}
|
|
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
|
|
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
|
|
run: python weekly_report.py
|