ops/dossiers-ngi: hourly branch-status emit tip fields only
This commit is contained in:
parent
f2a0d533b8
commit
ff934ce5e9
1 changed files with 4 additions and 2 deletions
|
|
@ -71,8 +71,10 @@ def main() -> int:
|
||||||
payload = {
|
payload = {
|
||||||
"generated": datetime.now(timezone.utc).astimezone().isoformat(timespec="seconds"),
|
"generated": datetime.now(timezone.utc).astimezone().isoformat(timespec="seconds"),
|
||||||
"host": HOST,
|
"host": HOST,
|
||||||
"tdpd_root": str(repo),
|
"branches": [
|
||||||
"branches": branches,
|
{"branch": b["branch"], "tip": b["tip"], "url": b["url"]}
|
||||||
|
for b in branches
|
||||||
|
],
|
||||||
}
|
}
|
||||||
OUT.parent.mkdir(parents=True, exist_ok=True)
|
OUT.parent.mkdir(parents=True, exist_ok=True)
|
||||||
OUT.write_text(json.dumps(payload, indent=2) + "\n", encoding="utf-8")
|
OUT.write_text(json.dumps(payload, indent=2) + "\n", encoding="utf-8")
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue