From 0dfad003dcc017e70a67f9f81787489422fb97e1 Mon Sep 17 00:00:00 2001 From: wwylele Date: Thu, 27 Oct 2016 23:45:56 +0300 Subject: [PATCH] Travis: only upload for push (#2134) --- .travis-upload.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.travis-upload.sh b/.travis-upload.sh index 7838bf079..1bec74b3d 100755 --- a/.travis-upload.sh +++ b/.travis-upload.sh @@ -1,4 +1,4 @@ -if [ "$TRAVIS_BRANCH" = "master" ]; then +if [ "$TRAVIS_EVENT_TYPE" = "push" ]&&[ "$TRAVIS_BRANCH" = "master" ]; then GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`" GITREV="`git show -s --format='%h'`"