mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2026-08-10 00:16:59 +00:00
Fixes branch name
This commit is contained in:
@@ -21,7 +21,7 @@ def getCurrentBranch() {
|
||||
def generateVersionName(String baseVersion) {
|
||||
def currentBranch = getCurrentBranch()
|
||||
|
||||
if (currentBranch == "main" || currentBranch == "master") {
|
||||
if (currentBranch == "main" || currentBranch == "master" || currentBranch == "unknown") {
|
||||
return baseVersion
|
||||
} else {
|
||||
// Clean branch name for version (replace special characters)
|
||||
|
||||
Reference in New Issue
Block a user