From b994e30e4cb3c727af46272c6d57d6a623a05933 Mon Sep 17 00:00:00 2001 From: Andrew Yuan Date: Mon, 28 Oct 2024 09:07:17 -0700 Subject: [PATCH] add print statement with version pulled --- build.gradle | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.gradle b/build.gradle index ae185082..9d1437e8 100644 --- a/build.gradle +++ b/build.gradle @@ -37,7 +37,9 @@ ext { // Use a regular expression to find the tag_name value def matcher = (response =~ /"tag_name"\s*:\s*"(.*?)"/) if (matcher.find()) { - return matcher.group(1).replaceFirst("^v", "") + def version = matcher.group(1).replaceFirst("^v", "") + println "Fetched latest SDK version: ${version}" + return version } else { throw new Exception("Failed to extract tag_name from GitHub response") }