Lock CI back to master

This commit is contained in:
Elisabeth Kulzer
2021-07-21 16:38:39 +02:00
committed by Claudio Costa
parent 1898670340
commit 33edd645c7
3 changed files with 10 additions and 3 deletions
+8 -1
View File
@@ -15,7 +15,14 @@ fi
BIN_PATH=${2:-bin}
RELEASE_TO_DOWNLOAD="release-6.0"
# strip whitespace
THIS_BRANCH=$(git rev-parse --abbrev-ref HEAD)
if [[ "$THIS_BRANCH" =~ 'release-'[0-9] ]];
then
RELEASE_TO_DOWNLOAD="$THIS_BRANCH"
else
RELEASE_TO_DOWNLOAD=master
fi
echo "Downloading prepackaged binary: https://releases.mattermost.com/mmctl/$RELEASE_TO_DOWNLOAD";