@cryptotaxi247 / netdata-1 / commits / 9ce44c4be

netdata/ci: use the right packaging user for the commits to trigger packaging (#6813)

Paul Emm. Katsoulakis committed Sep 11, 2019 at 14:41 UTC 9ce44c4bec37b721b839b5dc0aa024040bd456b1
1 file changed +3 -3
.travis/trigger_package_generation.sh
+3 -3
@@ -12,14 +12,14 @@ BUILD_NIGHTLY="$1"
12 commit_change() {
13 local ARCH="$1"
14 local PKG="$2"
15 + local GIT_MAIL="bot@netdata.cloud"
16 + local GIT_USER="netdatabot"
17
18 echo "---- Committing ${ARCH} .${PKG} package generation ----"
17 - git commit --allow-empty -m "[Package ${ARCH} ${PKG}]${BUILD_NIGHTLY} Package build process trigger"
19 + git commit --allow-empty --author "${GIT_USER} <${GIT_MAIL}>" -m "[Package ${ARCH} ${PKG}]${BUILD_NIGHTLY} Package build process trigger"
20 }
21
22 push_change() {
21 - local GIT_MAIL="bot@netdata.cloud"
22 - local GIT_USER="netdatabot"
23
24 echo "---- Push changes to repository ----"
25 git push "https://${GITHUB_TOKEN}:@$(git config --get remote.origin.url | sed -e 's/^https:\/\///')"