1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-24 13:52:55 +03:00

add debug output for the pages builder

This sometimes fails and I think it is because of a race with
one of the jobs that uploads an artifact
This commit is contained in:
Wez Furlong 2020-01-10 07:11:59 -08:00
parent ad2f724416
commit b722dd178f

View File

@ -37,6 +37,9 @@ def release_to_links(rel):
"windows": windows,
}
def pretty(o):
return json.dumps(o, indent=4, sort_keys=True, separators=(',', ':'))
def load_release_info():
with open("/tmp/wezterm.releases.json") as f:
release_info = json.load(f)
@ -51,6 +54,9 @@ def load_release_info():
latest = release_to_links(latest)
nightly = release_to_links(nightly)
print('latest: ', pretty(latest))
print('nightly: ', pretty(nightly))
subst = {}
for (kind, (url, name, dir)) in latest.items():
subst["{{ %s_stable }}" % kind] = url