"""Release matching synthetic child waits after the original cache expiry.
Usage: python3 release.py BASE_HOME HEAD_HOME
"""
import datetime,json,sys
from pathlib import Path
for side,home in zip(["base","head"],sys.argv[1:]):
 (Path(home)/"fixture"/"release").touch()
 print(json.dumps({"side":side,"releaseCreatedAt":datetime.datetime.now(datetime.timezone.utc).isoformat()}),flush=True)
