From 6924780ae9221a60c09658e27ecfc69f7c202e6c Mon Sep 17 00:00:00 2001 From: Yuan Gao Date: Fri, 16 Jun 2017 11:53:46 -0700 Subject: [PATCH] ci(aio): debug --- aio/scripts/payload.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/aio/scripts/payload.sh b/aio/scripts/payload.sh index 4f78700388..8b73bb5bd7 100755 --- a/aio/scripts/payload.sh +++ b/aio/scripts/payload.sh @@ -46,9 +46,12 @@ done timestamp=$(date +%s) payloadData="$payloadData\"timestamp\": $timestamp, " +echo $TRAVIS_COMMIT_RANGE # Add change source: application, dependencies, or 'application+dependencies' -allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE || "") -yarnChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep yarn.lock || "") +allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE) +echo $allChangedFiles +yarnChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE | grep yarn.lock) +echo $yarnChangedFiles if [[ ! -z $allChangedFiles ]] && [[ ! -z $yarnChangedFiles ]] && [ "$allChangedFiles" != "$yarnChangedFiles" ]; then change='application+dependencies'