File size: 877 Bytes
b67a1e9 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
python3 scripts/scan_projects.py
python3 scripts/create_project_cards.py
python3 scripts/triage_projects.py
python3 scripts/generate_jobs.py
python3 scripts/generate_github_issue_drafts.py
python3 verifier/verify_inventory.py
python3 verifier/verify_job_contracts.py
python3 verifier/verify_artifacts.py
python3 - <<'PY'
from pathlib import Path
import json
root=Path('.')
projects=sum(1 for _ in (root/'inventory'/'projects.jsonl').open(encoding='utf-8')) if (root/'inventory'/'projects.jsonl').exists() else 0
print(json.dumps({
'pipeline':'passed',
'projects':projects,
'project_cards':len(list((root/'inventory'/'project_cards').glob('*.md'))),
'pending_jobs':len(list((root/'jobs'/'pending').glob('*.json'))),
'issue_drafts':len(list((root/'github'/'issue_drafts').glob('*.md'))),
}, indent=2))
PY
|