From 3676c07a045ecab40ab676da38c08c03819c7653 Mon Sep 17 00:00:00 2001 From: creeper123123321 <7974274+creeper123123321@users.noreply.github.com> Date: Sat, 6 Apr 2019 14:55:25 -0300 Subject: [PATCH] Only tag if travis is building without a tag --- .travis.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.travis.yml b/.travis.yml index df9838c..95c5164 100644 --- a/.travis.yml +++ b/.travis.yml @@ -19,8 +19,5 @@ deploy: install: true script: # Set up git user name and tag this commit - - git config --local user.name "creeper12313321" - - git config --local user.email "creeper123123321@gmail.com" - - export TRAVIS_TAG=${TRAVIS_TAG:-build-$TRAVIS_JOB_NUMBER} - - git tag -f $TRAVIS_TAG + - if [ -z $TRAVIS_TAG ]; then; git config --local user.name "creeper12313321"; git config --local user.email "creeper123123321@gmail.com"; export TRAVIS_TAG=build-$TRAVIS_JOB_NUMBER; git tag -f $TRAVIS_TAG - ./gradlew clean build