Browse Source

[ci skip] need to checkout on a branch, aparently travis doesnt do that...

Pavlos Emm. Katsoulakis 5 years ago
parent
commit
c6182291c9
2 changed files with 13 additions and 2 deletions
  1. 6 1
      .travis/create_artifacts.sh
  2. 7 1
      .travis/draft_release.sh

+ 6 - 1
.travis/create_artifacts.sh

@@ -13,7 +13,12 @@ if [ ! "${TRAVIS_REPO_SLUG}" == "netdata/netdata" ]; then
 	exit 0
 fi;
 
-echo "Pulling latest code"
+echo "--- Initialize git configuration ---"
+export GIT_MAIL="bot@netdata.cloud"
+export GIT_USER="netdatabot"
+git config user.email "${GIT_MAIL}"
+git config user.name "${GIT_USER}"
+git checkout master
 git pull
 
 # Everything from this directory will be uploaded to GCS

+ 7 - 1
.travis/draft_release.sh

@@ -22,9 +22,15 @@ if [ ! -f .gitignore ]; then
 	exit 1
 fi
 
-echo "Pulling latest code"
+echo "--- Initialize git configuration ---"
+export GIT_MAIL="bot@netdata.cloud"
+export GIT_USER="netdatabot"
+git config user.email "${GIT_MAIL}"
+git config user.name "${GIT_USER}"
+git checkout master
 git pull
 
+
 if [[ $(git describe) =~ -rc* ]]; then
 	echo "This is a release candidate tag, we do not generate a release draft"
 	exit 0