Skip to content

Commit

Permalink
add print statement with version pulled
Browse files Browse the repository at this point in the history
  • Loading branch information
yuandrew committed Oct 28, 2024
1 parent 73debd9 commit b994e30
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
Expand Down

0 comments on commit b994e30

Please sign in to comment.