Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Pythyu committed Aug 11, 2024
1 parent adf6390 commit 9610d24
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tasks/libs/common/git.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,10 +187,8 @@ def get_last_tag(ctx, repo, pattern):
)

tags_without_suffix = [line for line in tags.splitlines() if not line.endswith("^{}")]
if repo == "datadog-agent-macos-build":
last_tag = tags_without_suffix[-1]
else:
last_tag = max(tags_without_suffix, key=lambda x: cmp_to_key(semver.compare)(x.split('/')[-1]))
last_tag = max(tags_without_suffix, key=lambda x: cmp_to_key(semver.compare)(x.split('/')[-1]))
print(f"DBG: {last_tag}", file=sys.stderr)
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 9610d24

Please sign in to comment.