Skip to content

Commit

Permalink
[version] handle main branch
Browse files Browse the repository at this point in the history
  • Loading branch information
FrogDevelopper committed Aug 12, 2024
1 parent 58cbde3 commit 89885e8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ fun computeProjectVersion() {

val computedVersion = when (branchName) {
"HEAD" -> handleHead()
"develop" -> handleDevelop()
"main" -> handleMain()
else -> handleBranch(branchName)
}

Expand All @@ -45,8 +45,8 @@ fun handleHead(): String {
return githubRefName
}

fun handleDevelop(): String {
return "develop-SNAPSHOT"
fun handleMain(): String {
return "main-SNAPSHOT"
}

fun handleBranch(branchName: String): String {
Expand Down

0 comments on commit 89885e8

Please sign in to comment.