mirror of
https://github.com/Mic92/nixos-wiki-infra.git
synced 2024-11-23 00:33:10 +01:00
Merge pull request #90 from NixOS/joerg-ci
increase exponential backoff when trying to fetch github releases
This commit is contained in:
commit
c92c80499f
@ -68,7 +68,7 @@ def mirror_extension(extension_name: str, mediawiki_version: str) -> Extension:
|
|||||||
with TemporaryDirectory() as tmpdir:
|
with TemporaryDirectory() as tmpdir:
|
||||||
download_file(download_url.geturl(), f"{tmpdir}/{base_name}")
|
download_file(download_url.geturl(), f"{tmpdir}/{base_name}")
|
||||||
run(["gh", "release", "upload", base_name, f"{tmpdir}/{base_name}"])
|
run(["gh", "release", "upload", base_name, f"{tmpdir}/{base_name}"])
|
||||||
for i in range(3):
|
for i in range(30):
|
||||||
try:
|
try:
|
||||||
hash = run(["nix-prefetch-url", "--unpack", mirror_url], stdout=subprocess.PIPE).stdout.strip()
|
hash = run(["nix-prefetch-url", "--unpack", mirror_url], stdout=subprocess.PIPE).stdout.strip()
|
||||||
except subprocess.CalledProcessError:
|
except subprocess.CalledProcessError:
|
||||||
|
Loading…
Reference in New Issue
Block a user