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
|
||||
|
||||
readonly thisDir=$(cd $(dirname $0); pwd)
|
||||
readonly parentDir=$(dirname $thisDir)
|
||||
readonly TOKEN=${ANGULAR_PAYLOAD_FIREBASE_TOKEN:-}
|
||||
readonly PROJECT_NAME="angular-payload-size"
|
||||
|
||||
source scripts/_payload-limits.sh
|
||||
source ${thisDir}/_payload-limits.sh
|
||||
|
||||
failed=false
|
||||
payloadData=""
|
||||
|
@ -43,8 +44,8 @@ payloadData="$payloadData\"timestamp\": $timestamp, "
|
|||
|
||||
# Add change source: application, dependencies, or 'application+dependencies'
|
||||
yarnChanged=false
|
||||
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir | wc -l)
|
||||
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $thisDir)
|
||||
allChangedFiles=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir | wc -l)
|
||||
allChangedFileNames=$(git diff --name-only $TRAVIS_COMMIT_RANGE $parentDir)
|
||||
|
||||
if [[ $allChangedFileNames == *"yarn.lock"* ]]; then
|
||||
yarnChanged=true
|
||||
|
|
Loading…
Reference in New Issue