We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3f20e91 commit 2c2107dCopy full SHA for 2c2107d
travis-ci/change-file.sh
@@ -4,10 +4,15 @@ MONTH=$(date +"%m")
4
cd $TRAVIS_BUILD_DIR
5
6
#Remove Remotes Added by TravisCI
7
-git remote rm origin
+#git remote rm origin
8
9
#Add Remote with Secure Key
10
-git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
+#git remote add origin https://${GH_TOKEN}@github.com/${TRAVIS_REPO_SLUG}.git
11
+
12
+local remote=origin
13
+if [[ $GH_TOKEN ]]; then
14
+ remote=https://$GH_TOKEN@github.com/$TRAVIS_REPO_SLUG
15
+fi
16
17
#List Remotes ONLY DURING testing - do not do this on live repo / possible key leak
18
#git remote -v
0 commit comments