More work on release.py
This commit is contained in:
parent
8e4f91ada2
commit
086e52cd65
@ -39,6 +39,7 @@ fileToUploadPath = args.file
|
|||||||
InNoninteractiveMode = args.non_interactive
|
InNoninteractiveMode = args.non_interactive
|
||||||
commitMessage = ripmeJson.get("changeList")[0]
|
commitMessage = ripmeJson.get("changeList")[0]
|
||||||
debug = args.debug
|
debug = args.debug
|
||||||
|
accessToken = args.token
|
||||||
|
|
||||||
if not os.path.isfile(fileToUploadPath):
|
if not os.path.isfile(fileToUploadPath):
|
||||||
print("[!] Error: {} does not exist".format(fileToUploadPath))
|
print("[!] Error: {} does not exist".format(fileToUploadPath))
|
||||||
@ -67,8 +68,12 @@ if expectedHash != actualHash:
|
|||||||
print("[!] Expected hash is {}".format(expectedHash))
|
print("[!] Expected hash is {}".format(expectedHash))
|
||||||
print("[!] Actual hash is {}".format(actualHash))
|
print("[!] Actual hash is {}".format(actualHash))
|
||||||
|
|
||||||
|
# Ask the user to review the information before we precede
|
||||||
# This only runs in we're in interactive mode
|
# This only runs in we're in interactive mode
|
||||||
if not InNoninteractiveMode:
|
if not InNoninteractiveMode:
|
||||||
print("File path: {}\n".format(fileToUploadPath))
|
print("File path: {}\n".format(fileToUploadPath))
|
||||||
print("Release title: {}".format(commitMessage))
|
print("Release title: {}".format(commitMessage))
|
||||||
input("\nPlease review the information above and ensure it is correct and then press enter")
|
input("\nPlease review the information above and ensure it is correct and then press enter")
|
||||||
|
|
||||||
|
print("Accessing github using token")
|
||||||
|
g = Github(accessToken)
|
Loading…
Reference in New Issue
Block a user