From 9610d241c1e9a252e4aa2d5e27b234913ac6e52e Mon Sep 17 00:00:00 2001 From: Pythyu Date: Sun, 11 Aug 2024 02:45:13 +0200 Subject: [PATCH] test --- tasks/libs/common/git.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tasks/libs/common/git.py b/tasks/libs/common/git.py index 2725f404ee16dd..72a4baf313b294 100644 --- a/tasks/libs/common/git.py +++ b/tasks/libs/common/git.py @@ -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: