diff --git a/languages/kotlin/sdk/build.gradle b/languages/kotlin/sdk/build.gradle index 5b8637f83..3fb6956e2 100644 --- a/languages/kotlin/sdk/build.gradle +++ b/languages/kotlin/sdk/build.gradle @@ -50,7 +50,7 @@ publishing { def branchName = "git branch --show-current".execute().text.trim() - if (branchName == null) { + if (branchName == "master") { def content = ['grep', '-o', '^version = ".*"', '../../crates/bitwarden/Cargo.toml'].execute().text.trim() def match = ~/version = "(.*)"/ def matcher = match.matcher(content)