Commit 42b280b4 authored by alexandr.kravchenko's avatar alexandr.kravchenko

Specified branch name source to be gitlab-based when possible

parent 366920a5
......@@ -101,7 +101,7 @@ else
for textline in $text; do
dch -v $VERSION_STRING $textline
done
branch=$(git branch | grep "*" | cut -c 3- )
[[ -v CI_COMMIT_REF_NAME ]] && branch=$CI_COMMIT_REF_NAME || branch=$(git branch | grep "*" | cut -c 3- )
case branch in
"master" ) branch="stable";;
"develop" ) branch="testing";;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment