Skip to content

Jin10 flash monitor Agent #14

Jin10 flash monitor Agent

Jin10 flash monitor Agent #14

Workflow file for this run

name: Jin10 flash monitor Agent
on:
schedule:
- cron: '0 */6 * * *'
workflow_dispatch:
concurrency:
group: jin10-monitor
cancel-in-progress: true
jobs:
run-monitor:
runs-on: ubuntu-latest
timeout-minutes: 360
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then
pip install -r requirements.txt
else
pip install aiohttp websockets python-dotenv
fi
- name: Restore recent news context (best-effort)
uses: actions/cache/restore@v4
with:
path: data/recent_news.json
key: recent-news-${{ github.run_id }}
restore-keys: |
recent-news-
- name: Run Jin10 Monitor
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
GEMINI_MODEL: ${{ vars.GEMINI_MODEL }}
TELEGRAM_BOT_TOKEN_01: ${{ secrets.TELEGRAM_BOT_TOKEN_01 }}
TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }}
run: |
python src/jin10_monitor.py
- name: Save recent news context (best-effort)
if: always()
uses: actions/cache/save@v4
with:
path: data/recent_news.json
key: recent-news-${{ github.run_id }}