github: Fix "No tag found in upstream repository" with use_max_tag

This commit is contained in:
Chih-Hsuan Yen 2019-03-07 16:26:58 +08:00
parent ab1ecc231d
commit be7618988e
No known key found for this signature in database
GPG Key ID: 0453A6CA23C56315

View File

@ -110,9 +110,10 @@ async def max_tag(
else:
url = next_page_url
logger.error('No tag found in upstream repository.',
name=name,
include_tags_pattern=include_tags_pattern)
if not tags:
logger.error('No tag found in upstream repository.',
name=name,
include_tags_pattern=include_tags_pattern)
return tags
def get_next_page_url(links):