Weekly Alt Clouds Monitor #3
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: Weekly Alt Clouds Monitor | |
| on: | |
| schedule: | |
| # Every Monday at 10 AM UTC | |
| - cron: '0 10 * * 1' | |
| workflow_dispatch: # Manual trigger for testing | |
| jobs: | |
| monitor-and-evaluate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write | |
| issues: write | |
| steps: | |
| - name: Checkout repository | |
| 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 requests beautifulsoup4 lxml | |
| - name: Run news monitoring | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| run: | | |
| python scripts/monitor_news.py | |
| - name: Evaluate candidates | |
| env: | |
| ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }} | |
| run: | | |
| python scripts/evaluate_candidates.py | |
| - name: Create GitHub issues for candidates | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| run: | | |
| python scripts/create_issues.py | |
| - name: Commit scan results | |
| run: | | |
| git config user.name "github-actions[bot]" | |
| git config user.email "github-actions[bot]@users.noreply.github.com" | |
| git add data/ | |
| git diff --staged --quiet || git commit -m "Weekly scan: $(date +%Y-%m-%d)" | |
| git push | |
| - name: Send Slack notification | |
| env: | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} | |
| run: | | |
| python scripts/slack_notifier.py |