The scripts were accidentally broken in #20524. More specifically, when a limit was exceeded the script would break while trying to log an error message due to a missing `commit` variable. This commit fixes it and also does some minor clean-up (improve docs, use more descriptive variable names, remove dead code, etc). PR Close #20683
13 lines
280 B
Bash
Executable File
13 lines
280 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
set -eu -o pipefail
|
|
|
|
readonly thisDir=$(cd $(dirname $0); pwd)
|
|
readonly parentDir=$(dirname $thisDir)
|
|
|
|
# Track payload size functions
|
|
source ../scripts/ci/payload-size.sh
|
|
|
|
trackPayloadSize "aio" "dist/*.bundle.js" true true "${thisDir}/_payload-limits.json"
|
|
|