mirror of
https://github.com/vitorpamplona/amethyst.git
synced 2025-11-10 07:07:37 +01: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