[size-report] checkout pull request head (#11724)

This commit is contained in:
Yakun Xu
2025-07-15 10:48:46 -07:00
committed by GitHub
parent e72e68a05e
commit d4734df8bb
3 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ set -euo pipefail
OT_TMP_DIR=/tmp/ot-size-report
readonly OT_TMP_DIR
OT_SHA_NEW=${GITHUB_SHA:-$(git rev-parse HEAD)}
OT_SHA_NEW="$(git rev-parse HEAD)"
readonly OT_SHA_NEW
OT_SHA_OLD="${OT_SHA_OLD:-$(git cat-file -p "${OT_SHA_NEW}" | grep 'parent ' | head -n1 | cut -d' ' -f2)}"