CI: Don't overwrite pre-existing $CHANNEL

This commit is contained in:
Trent Nelson 2020-09-11 15:11:19 -06:00 committed by mergify[bot]
parent 9dabcfc388
commit 05de260216
1 changed files with 8 additions and 6 deletions

View File

@ -95,6 +95,7 @@ elif [[ -n $CI_BRANCH ]]; then
BRANCH="$CI_BRANCH"
fi
if [[ -z "$CHANNEL" ]]; then
if [[ $BRANCH = "$STABLE_CHANNEL" ]]; then
CHANNEL=stable
elif [[ $BRANCH = "$EDGE_CHANNEL" ]]; then
@ -102,6 +103,7 @@ elif [[ $BRANCH = "$EDGE_CHANNEL" ]]; then
elif [[ $BRANCH = "$BETA_CHANNEL" ]]; then
CHANNEL=beta
fi
fi
echo EDGE_CHANNEL="$EDGE_CHANNEL"
echo BETA_CHANNEL="$BETA_CHANNEL"