Skip to content

Commit 03fdb35

Browse files
get git branch
1 parent 4fef46f commit 03fdb35

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

travis-ci/deploy2.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ cd $TRAVIS_BUILD_DIR
77
git config --global user.email "${GIT_EMAIL}"
88
git config --global user.name "${GIT_NAME}"
99
git config --global push.default simple
10+
git branch
1011
#sudo git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
1112
#git fetch --tags
1213
msg="Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
@@ -18,7 +19,7 @@ git add $TRAVIS_BUILD_DIR/globalblacklist.conf
1819
#git add $TRAVIS_BUILD_DIR/build.txt
1920
export GIT_TAG=V2.$YEAR-$MONTH.$TRAVIS_BUILD_NUMBER
2021
git tag $GIT_TAG -a -m "Tag $GIT_TAG Generated from TravisCI for build $TRAVIS_BUILD_NUMBER"
21-
git commit -am "Update build version file $GIT_TAG with $TRAVIS_BUILD_NUMBER"
22+
#git commit -am "Update build version file $GIT_TAG with $TRAVIS_BUILD_NUMBER"
2223
sudo git push origin master && git push origin master --tags
2324
#git push https://${GH_TOKEN}@github.com/mitchellkrogza/Travis-CI-Nginx-for-Testing-Nginx-Configuration --all
2425
ls -aR

0 commit comments

Comments
 (0)