Skip to content

Commit

Permalink
refactor: prepare travis support, skip update if current branch is de…
Browse files Browse the repository at this point in the history
…ploy branch
  • Loading branch information
adhocore committed Aug 3, 2019
1 parent de961ba commit ceb61da
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions please
Original file line number Diff line number Diff line change
Expand Up @@ -244,9 +244,15 @@ ok "Repository ${REPO}"
TMP_LOG=`tempfile -p PLZ`
info "Log file ${TMP_LOG}"
info "Updating master ..."
qgit stash && qgit checkout master && qgit fetch --tags && qgit pull origin master --rebase
ok
DEPLOY_BRANCH="${DEPLOY_BRANCH:-master}"
if [ -z "$TRAVIS" ] || [ "$DEPLOY_BRANCH" == "$TRAVIS_BRANCH" ]; then
info "Updating $DEPLOY_BRANCH ..."
qgit stash && qgit checkout $DEPLOY_BRANCH && qgit fetch --tags && qgit pull origin $DEPLOY_BRANCH --rebase
ok
else
info "Skip release"
exit 0
fi
info "Getting latest releases ..."
VERSION=`github "https://api.${GH_REPO}/releases?per_page=1" | jq -r '.[0]?.tag_name?'`
Expand Down

0 comments on commit ceb61da

Please sign in to comment.