From 60561d6f9f2827df89045d290cd8cd5a775af80f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Francesco=20Borz=C3=AC?= Date: Wed, 23 Jan 2019 22:54:45 +0000 Subject: [PATCH] chore(bot): improve layout of travis bot commits (#1347) --- .travis.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index 179fe79ff..3ac5a1e0e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -17,7 +17,7 @@ git: depth: 1 before_install: - - git config user.email "travis@build.bot" && git config user.name "Travis CI" + - git config user.email "azerothcorebot@gmail.com" && git config user.name "AzerothCoreBot" - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then cd bin/; fi # import pending sql - if [ "$TRAVIS_PULL_REQUEST" = "false" ] && [ "$TRAVIS_BRANCH" = "master" ]; then bash acore-db-pendings; fi @@ -25,7 +25,7 @@ before_install: # push changes to git if any - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git fetch --unshallow; fi - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git checkout $TRAVIS_BRANCH; fi - - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git add -A . && git diff --cached --quiet || git commit -am "Importing pending sql" && git push https://$GITHUB_API_KEY@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH; fi + - if [ "$TRAVIS_PULL_REQUEST" = "false" ]; then git add -A . && git diff --cached --quiet || git commit -am "Import pending SQL update file" && git push https://$GITHUB_API_KEY@github.com/$TRAVIS_REPO_SLUG.git $TRAVIS_BRANCH; fi install: # install OS deps (apt-get)