Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythyu committed Aug 9, 2024
1 parent 8f1d48e commit 29acf63
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tasks/libs/common/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,7 @@ def get_last_tag(ctx, repo, pattern):

tags_without_suffix = [line for line in tags.splitlines() if not line.endswith("^{}")]
last_tag = max(tags_without_suffix, key=lambda x: cmp_to_key(semver.compare)(x.split('/')[-1]))
print(last_tag)
last_tag_commit, last_tag_name = last_tag.split()
tags_with_suffix = [line for line in tags.splitlines() if line.endswith("^{}")]
if tags_with_suffix:
Expand Down

0 comments on commit 29acf63

Please sign in to comment.