debug dryrun mode

This commit is contained in:
Marco Carrozzo
2023-01-11 12:05:06 +01:00
parent 8f0a6142c9
commit 9e2fc4f03a
2 changed files with 11 additions and 9 deletions
+8 -7
View File
@@ -1,5 +1,6 @@
#!/bin/bash
echo "ARG: $1"
exit 0
if [[ $TRAVIS_BRANCH == "master" ]]; then
VERSION=$(grep -m1 version package.json | awk '{ print $2 }' | sed 's/[", ]//g')
else
@@ -7,12 +8,12 @@ else
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 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 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
if [[ "$1" == "dryrun=--dryrun" ]]; then
echo "dry run";