Skip to content

Commit 0c1bc9d

Browse files
committed
set origin url rather than add origin
[semver minor]
1 parent 2bf9147 commit 0c1bc9d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/create_semver_tag.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ if [ "$TRAVIS_REPO_SLUG" == "watson-developer-cloud/node-sdk" ] \
2020

2121
git config --global user.email "[email protected]"
2222
git config --global user.name "travis-ci"
23-
git remote add origin https://${GH_TOKEN}@github.com/watson-developer-cloud/node-sdk
23+
git config remote.origin.url https://${GH_TOKEN}@github.com/watson-developer-cloud/node-sdk
2424
git push origin master --follow-tags
2525

2626
else
2727

28-
echo -e "Not creating a semver tag for $TRAVIS_BUILD_NUMBER ($TRAVIS_JOB_NUMBER) on branch $TRAVIS_BRANCH of repo $TRAVIS_REPO_SLUG with commit message:"
29-
echo TRAVIS_COMMIT_MESSAGE
28+
echo -e "Not creating a semver tag for build $TRAVIS_JOB_NUMBER on branch $TRAVIS_BRANCH of repo $TRAVIS_REPO_SLUG with commit message:"
29+
echo $TRAVIS_COMMIT_MESSAGE
3030

3131
fi

0 commit comments

Comments
 (0)