name: "SkyEye Weekly Full Scan" on: schedule: - cron: '0 12 * * 6' # 20:00 CST (UTC+8) every Saturday repository_dispatch: types: [skyeye-full-scan] # 手动触发 permissions: contents: write jobs: weekly-scan: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - name: "🧐 Wake up SkyEye Core Brain" run: echo "[SkyEye] Core brain awakened for weekly full scan at $(date -u '+%Y-%m-%dT%H:%M:%SZ')" - name: "🔍 Phase 1 - Infrastructure Scan" run: node skyeye/scripts/scan-engine.js --mode=full - name: "💰 Phase 2 - Quota Audit" run: node skyeye/scripts/quota-tracker.js --audit - name: "⚙️ Phase 3 - Optimize Guards" run: node skyeye/scripts/optimizer.js --apply - name: "🩹 Phase 4 - Self-Heal" run: node skyeye/scripts/self-healer.js - name: "📝 Phase 5 - Generate Report" run: node skyeye/scripts/weekly-scan.js --report - name: "📊 Phase 6 - Architecture Summary → README" run: node scripts/skyeye/generate-arch-summary.js - name: "Commit scan results" run: | git config user.name "天眼 · SkyEye Core" git config user.email "skyeye@guanghu.system" git add skyeye/ buffer/config/ README.md git diff --cached --quiet || git commit -m "🦅 [skyeye-weekly] $(date -u +%Y%m%d) full scan + arch summary [skip ci]" git push # Notion 同步 · 架构汇总推送到 Notion(通过 Bridge E) notify-notion: needs: weekly-scan runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: ref: main # 确保拉到刚 push 的最新版 - name: "📡 Sync arch summary to Notion via Bridge E" env: NOTION_TOKEN: ${{ secrets.NOTION_API_KEY }} CHANGES_DB_ID: ${{ secrets.NOTION_CHANGE_LOG_DB_ID }} EVENT_TYPE: commit COMMIT_SHA: ${{ github.sha }} COMMIT_MSG: "🦅 天眼周报 · 系统架构汇总自动同步" COMMITTER: "天眼 · SkyEye Core" COMMIT_TIMESTAMP: ${{ github.event.repository.updated_at }} BRANCH: main CHANGED_FILES: "README.md\nskyeye/scan-report/" run: node scripts/notion-bridge.js changes