Skip to content

Commit eaf3673

Browse files
authored
Delay while git submodules upload (#105)
1 parent f7c1533 commit eaf3673

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

publish_release.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,15 @@ def fileHash(fileName):
6969
return sha256_hash.hexdigest()
7070

7171

72+
def sleep(seconds):
73+
for i in range(seconds):
74+
try:
75+
time.sleep(1)
76+
except KeyboardInterrupt:
77+
print("Oh! You have sent a Keyboard Interrupt! Continuing.")
78+
break
79+
80+
7281
def genJSON(snapshotJSON, fileName, incomingSHA, nodocs=False):
7382
global checksum_succeeded
7483
with open(snapshotJSON, "r") as f:
@@ -284,6 +293,12 @@ def git_tags():
284293
print(result)
285294
exit(1)
286295

296+
sleep_seconds = 30
297+
print(f"Waiting {sleep_seconds} seconds for git submodules to upload.")
298+
print("Adjusts the length of time in the script if needed.")
299+
print("You may exit from the sleep loop with a Ctrl-C.")
300+
sleep(sleep_seconds)
301+
287302
# function complete
288303
os.chdir(origDir)
289304

0 commit comments

Comments
 (0)