Merge remote-tracking branch 'refs/remotes/WagicProject/master'
This commit is contained in:
@@ -13,9 +13,11 @@ def checkRelease(repository, remote):
|
|||||||
for a in r.assets :
|
for a in r.assets :
|
||||||
if a.name == remote :
|
if a.name == remote :
|
||||||
# need to delete the old release
|
# need to delete the old release
|
||||||
|
print '!deleting old release! -> ' + r.name
|
||||||
r.delete()
|
r.delete()
|
||||||
# need also to delete the tag (reference)
|
# need also to delete the tag (reference)
|
||||||
ref = repository.ref('tags/latest-master')
|
ref = repository.ref('tags/latest-master')
|
||||||
|
print '!deleting old tag! -> ' + ref.name
|
||||||
ref.delete()
|
ref.delete()
|
||||||
release = None
|
release = None
|
||||||
|
|
||||||
@@ -51,6 +53,10 @@ def main():
|
|||||||
|
|
||||||
if (options.token and options.sha and options.local and options.remote and (options.branch == 'master' or options.branch == 'travis_mac_osx')):
|
if (options.token and options.sha and options.local and options.remote and (options.branch == 'master' or options.branch == 'travis_mac_osx')):
|
||||||
gh = login(token = options.token)
|
gh = login(token = options.token)
|
||||||
|
elif (options.branch != 'master' and options.branch != 'travis_mac_osx'):
|
||||||
|
print '!branch is not master or travis_mac_osx! -> ' + options.branch
|
||||||
|
print '-will not upload-'
|
||||||
|
return
|
||||||
else:
|
else:
|
||||||
parser.print_help()
|
parser.print_help()
|
||||||
return
|
return
|
||||||
|
|||||||
Reference in New Issue
Block a user