set branch

This commit is contained in:
Marco Carrozzo
2023-01-11 12:35:23 +01:00
parent 1144a094f6
commit 2f431883a2
2 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -85,4 +85,4 @@ jobs:
- name: "Release tag"
run: |
git fetch --all --quiet
set -u; TRAVIS_BRANCH=master bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }}
set -u; TRAVIS_BRANCH=${GITHUB_REF##*/} bash -x ./scripts/travis/release/git-tag.sh ${{ steps.set-dryrun.outputs.dryrun }}
+4 -9
View File
@@ -9,20 +9,15 @@ fi;
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 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
if [[ "$1" == "--dryrun" ]]; then
echo "dry run";
echo "Dry run enabled. Nothing is changed";
git tag | grep "${VERSION}"
git switch -c AAE-12037-dev
touch dev.test
git add dev.test
git commit -m "add dev.test"
git push origin AAE-12037-dev
else
echo "LIVE!"
# git push origin --tags
echo "Pushing new tag ${VERSION}!"
#git push origin --tags
fi;