checkout develop

This commit is contained in:
Marco Carrozzo
2023-01-11 12:17:51 +01:00
parent 8070f6466f
commit 3653447a33
+4 -5
View File
@@ -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