diff --git a/script/build-bisect.py b/script/build-bisect.py index d878828ccd1..5d6746ad19b 100755 --- a/script/build-bisect.py +++ b/script/build-bisect.py @@ -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):