Skip to content

Daily Specter Intelligence Sweep #130

Daily Specter Intelligence Sweep

Daily Specter Intelligence Sweep #130

Workflow file for this run

name: Daily Specter Intelligence Sweep
on:
schedule:
# Runs at 12:00 PM UTC every day. Change this if you prefer a different time.
- cron: '32 1 * * *'
workflow_dispatch:
# Allows you to run this workflow manually from the Actions tab
permissions:
contents: write # Needed to commit the file back to the repository
jobs:
run-specter:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
steps:
- name: Checkout Repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11' # Matches the ecosystem we are using
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libcairo2-dev pkg-config python3-dev
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Execute Autonomous Intelligence Sweep
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
TAVILY_API_KEY: ${{ secrets.TAVILY_API_KEY }}
SENDER_EMAIL: ${{ secrets.SENDER_EMAIL }}
SENDER_PASSWORD: ${{ secrets.SENDER_PASSWORD }}
run: |
python run_agent.py
- name: Commit and Push the PDF Report
# This step only runs if a new file was created and isn't identical
run: |
git config --local user.email "specter-agent@github.actions"
git config --local user.name "Specter Intelligence Agent"
git add reports/
# If there are no changes, this will just gracefully exit instead of failing
git commit -m "docs: Automated Daily Intelligence Brief" || echo "No new intelligence briefs to commit."
git push