diff --git a/.github/config.py b/.github/config.py index feafbdb..97cf780 100755 --- a/.github/config.py +++ b/.github/config.py @@ -27,7 +27,11 @@ def main(): args = parser.parse_args() if args.latest: - print(git_tags()[-1]) + tags = git_tags() + if tags: + print(tags[-1]) + else: + print('main') return refs = []