Merge pull request #526 from AcreetionOS-Code/fix/ai-guardian-2026052… #969
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: AI Flash Guardian | ||
| on: | ||
| schedule: | ||
| - cron: '*/30 * * * *' # Every 30 min — verify all ISOs downloadable | ||
| workflow_dispatch: | ||
| jobs: | ||
| check-and-fix: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Trigger worker health check (auto-fixes ISOs) | ||
| run: | | ||
| echo "Calling worker health check..." | ||
| curl -s "https://acreetionos.org/api/health/check" --max-time 60 | python3 -c " | ||
| import sys, json | ||
| data = json.load(sys.stdin) | ||
| print(f'Issues: {data.get(\"issues\", \"?\")}') | ||
| print(f'Healthy: {data.get(\"healthy\", \"?\")}') | ||
| print(f'Pages: {len(data.get(\"pages\", []))} checked') | ||
| print(f'APIs: {len(data.get(\"apis\", []))} checked') | ||
| print(f'Downloads: {len(data.get(\"downloads\", []))} checked') | ||
| for d in data.get('downloads', []): | ||
| status = '✅' if d.get('healthy') else '❌' | ||
| found = f' → {d[\"found_at\"]}' if d.get('found_at') else '' | ||
| print(f' {status} {d[\"edition\"]}: {d.get(\"status\",0)}{found}') | ||
| " | ||