From 3653447a3329b56fa9734e24bccc2dca96c93109 Mon Sep 17 00:00:00 2001 From: Marco Carrozzo Date: Wed, 11 Jan 2023 12:17:51 +0100 Subject: [PATCH] checkout develop --- scripts/travis/release/git-tag.sh | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/travis/release/git-tag.sh b/scripts/travis/release/git-tag.sh index 7fa89ec290..c37be78b62 100755 --- a/scripts/travis/release/git-tag.sh +++ b/scripts/travis/release/git-tag.sh @@ -1,7 +1,5 @@ #!/bin/bash -set -e - if [[ $TRAVIS_BRANCH == "master" ]]; then VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g') else @@ -12,13 +10,14 @@ echo "git tag -a ${VERSION} -m ${VERSION}" git config --local user.name "alfresco-build" git config --local user.email "build@alfresco.com" git tag -a ${VERSION} -m "${VERSION} [ci skip] " -# git remote rm origin -# GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git -# git remote add origin $GITHUB_REPO +git remote rm origin +GITHUB_REPO=https://$GITHUB_TOKEN:x-oauth-basic@github.com/Alfresco/alfresco-ng2-components.git +git remote add origin $GITHUB_REPO if [[ "$1" == "--dryrun" ]]; then echo "dry run"; git tag | grep "${VERSION}" + git checkout develop else echo "LIVE!" # git push origin --tags