Daily Horizon Summary #12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Daily Horizon Summary | |
| on: | |
| schedule: | |
| - cron: '0 0 */3 * *' # Runs every 3 days at 00:00 UTC | |
| workflow_dispatch: # Allow manual trigger | |
| jobs: | |
| daily-summary: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Needed to commit changes | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| - name: Install dependencies | |
| run: uv sync | |
| - name: Run Horizon | |
| env: | |
| # Map secrets to environment variables expected by config.json | |
| # Modify these based on your config.json provider settings | |
| OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} | |
| run: uv run horizon --hours 72 | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./docs | |
| commit_message: "📝 Daily Summary: $(date +'%Y-%m-%d')" | |
| publish_branch: gh-pages | |
| enable_jekyll: true |