Skip to content

Commit

Permalink
Check for master branch with Maven builds
Browse files Browse the repository at this point in the history
  • Loading branch information
withinfocus committed Sep 21, 2023
1 parent 0185899 commit 285cb12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion languages/kotlin/sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 285cb12

Please sign in to comment.