Skip to content

Merge pull request #526 from AcreetionOS-Code/fix/ai-guardian-2026052… #969

Merge pull request #526 from AcreetionOS-Code/fix/ai-guardian-2026052…

Merge pull request #526 from AcreetionOS-Code/fix/ai-guardian-2026052… #969

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

Check failure on line 15 in .github/workflows/ai-flash-guard.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ai-flash-guard.yml

Invalid workflow file

You have an error in your yaml syntax on line 15
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}')
"