ops: dossiers-ngi hourly branch-status emit tip fields only
This commit is contained in:
parent
c406352e1a
commit
c1fefcc766
1 changed files with 4 additions and 2 deletions
|
|
@ -71,8 +71,10 @@ def main() -> int:
|
|||
payload = {
|
||||
"generated": datetime.now(timezone.utc).astimezone().isoformat(timespec="seconds"),
|
||||
"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.write_text(json.dumps(payload, indent=2) + "\n", encoding="utf-8")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue