mirror of
https://github.com/qpdf/qpdf.git
synced 2025-01-05 08:02:11 +00:00
Diagnose CI failure on download-external-libs
This commit is contained in:
parent
6cbc55a5b5
commit
dab48544d2
@ -33,6 +33,13 @@ os.makedirs(dir_name, exist_ok=True)
|
|||||||
r = requests.get(
|
r = requests.get(
|
||||||
'https://api.github.com/repos/qpdf/external-libs/releases')
|
'https://api.github.com/repos/qpdf/external-libs/releases')
|
||||||
releases = json.loads(r.text)
|
releases = json.loads(r.text)
|
||||||
|
|
||||||
|
# Help diagnose occasional failure where some releases don't have
|
||||||
|
# 'prerelease'. I've never seen this in attempts to reproduce.
|
||||||
|
print("---- github API output for external-libs releaes ----")
|
||||||
|
print(json.dumps(releases, indent=2, separators=(',', ': ')))
|
||||||
|
print("--------")
|
||||||
|
|
||||||
by_tag = sorted(
|
by_tag = sorted(
|
||||||
[(r['tag_name'], r) for r in releases
|
[(r['tag_name'], r) for r in releases
|
||||||
if r['prerelease'] is False],
|
if r['prerelease'] is False],
|
||||||
|
Loading…
Reference in New Issue
Block a user