AAE-12037 git-tag stage (#8124)

* tag release from master branch

* dry run message

Co-authored-by: alfresco-build <build@alfresco.com>
This commit is contained in:
Marco Carrozzo
2023-01-12 12:31:08 +01:00
committed by GitHub
parent fe65f7c201
commit 9d143cf945
2 changed files with 95 additions and 1 deletions

View File

@@ -13,4 +13,10 @@ 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 push origin --tags
if [[ "$1" == "--dryrun" ]]; then
echo "dry run: Pushing new tag ${VERSION}!"
else
echo "Pushing new tag ${VERSION}!"
git push origin --tags
fi;