Properly return token (allows CLI usage; bug in original) and have better check for version
This commit is contained in:
@@ -85,9 +85,10 @@ def get_releases(repo):
|
||||
if release['draft']:
|
||||
draft_count = draft_count + 1
|
||||
continue
|
||||
if 'android' in release['tag_name'] or 'b' in release['tag_name']:
|
||||
continue
|
||||
tag_name = str(release['tag_name'].strip().replace('v', ''))
|
||||
# skip "android" releases and others not matching version format
|
||||
if not tag_name.replace('.','').isdigit():
|
||||
continue
|
||||
tag_names.append(tag_name)
|
||||
releases[tag_name] = release
|
||||
page = page + 1
|
||||
@@ -295,6 +296,8 @@ def get_github_token():
|
||||
if result == 'undefined':
|
||||
raise Exception('`BRAVE_GITHUB_TOKEN` value not found!')
|
||||
return result
|
||||
else:
|
||||
return github_token
|
||||
|
||||
|
||||
def get_nearest_index(version, index_to_get, default):
|
||||
|
||||
Reference in New Issue
Block a user