ci(aio): Fix the payload script only check for changes in aio/scripts
This commit is contained in:
parent
dc88e0a881
commit
9263da570f
|
@ -4,10 +4,11 @@
|
||||||
set +x -eu -o pipefail
|
set +x -eu -o pipefail
|
||||||
|
|
||||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||||
|
readonly parentDir=$(dirname $thisDir)
|
||||||
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
|
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
|
||||||
readonly PROJECT_NAME="angular-payload-size"
|
readonly PROJECT_NAME="angular-payload-size"
|
||||||
|
|
||||||
source scripts/_payload-limits.sh
|
source ${thisDir}/_payload-limits.sh
|
||||||
|
|
||||||
failed=false
|
failed=false
|
||||||
payloadData=""
|
payloadData=""
|
||||||
|
@ -43,8 +44,8 @@ payloadData="$payloadData\"timestamp\": $timestamp, "
|
||||||
|
|
||||||
# Add change source: application, dependencies, or 'application+dependencies'
|
# Add change source: application, dependencies, or 'application+dependencies'
|
||||||
yarnChanged=false
|
yarnChanged=false
|
||||||
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir | wc -l)
|
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | wc -l)
|
||||||
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir)
|
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir)
|
||||||
|
|
||||||
if [[ $allChangedFileNames == *"yarn.lock"* ]]; then
|
if [[ $allChangedFileNames == *"yarn.lock"* ]]; then
|
||||||
yarnChanged=true
|
yarnChanged=true
|
||||||
|
|
Loading…
Reference in New Issue