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,12 +95,14 @@ elif [[ -n $CI_BRANCH ]]; then
BRANCH="$CI_BRANCH"
fi
if [[ $BRANCH = "$STABLE_CHANNEL" ]]; then
CHANNEL=stable
elif [[ $BRANCH = "$EDGE_CHANNEL" ]]; then
CHANNEL=edge
elif [[ $BRANCH = "$BETA_CHANNEL" ]]; then
CHANNEL=beta
if [[ -z "$CHANNEL" ]]; then
if [[ $BRANCH = "$STABLE_CHANNEL" ]]; then
CHANNEL=stable
elif [[ $BRANCH = "$EDGE_CHANNEL" ]]; then
CHANNEL=edge
elif [[ $BRANCH = "$BETA_CHANNEL" ]]; then
CHANNEL=beta
fi
fi
echo EDGE_CHANNEL="$EDGE_CHANNEL"