Skip to content

Commit

Permalink
Lock CI back to master
Browse files Browse the repository at this point in the history
  • Loading branch information
metanerd authored and streamer45 committed Jul 21, 2021
1 parent 1898670 commit 33edd64
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
cd ../
git clone --depth=1 --no-single-branch https://github.com/mattermost/mattermost-webapp.git
cd mattermost-webapp
git checkout $CIRCLE_BRANCH || git checkout release-6.0
git checkout $CIRCLE_BRANCH || git checkout master
export WEBAPP_GIT_COMMIT=$(git rev-parse HEAD)
echo "$WEBAPP_GIT_COMMIT"
Expand Down
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ stages:

include:
- project: mattermost/ci/mattermost-server
ref: release-6.0
ref: master
file: private.yml

variables:
Expand Down
9 changes: 8 additions & 1 deletion scripts/download_mmctl_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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";

Expand Down

0 comments on commit 33edd64

Please sign in to comment.