Skip to content

AIC Fork Monitor

AIC Fork Monitor #3

name: AIC Fork Monitor
on:
schedule:
- cron: '0 4 * * 1' # Chạy thứ 2 lúc 4h sáng UTC
workflow_dispatch:
jobs:
monitor:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: pip install requests pandas
- name: Run Fork Monitor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
ls -la scripts/ # Debug: kiểm tra có file không
python scripts/monitor-forks.py
- name: Generate Report
run: python scripts/generate-report.py
- name: Commit changes if any
run: |
git config user.name "AIC Fork Bot"
git config user.email "bot@adaptiveintelligencecircle.org"
git add fork-log.csv logs/ COMPLIANCE-VIOLATIONS.md
git commit -m "chore: update fork monitor data [automated]" || echo "No changes to commit"
git push