From e53dd18e5303701be1932e9d51123a9221cfd36c Mon Sep 17 00:00:00 2001 From: Yakun Xu Date: Fri, 31 Jul 2026 23:16:48 +0800 Subject: [PATCH] [ci] only upload report_pr (#13452) Currently, the `size-check` job uploads all intermediates used for generating the report. This commit changes the `size-check` to upload the final size report file only, so that it won't bloat the artifacts. --- .github/workflows/size-check.yml | 3 ++- script/check-size | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/size-check.yml b/.github/workflows/size-check.yml index 9d769e3b5..5e9352708 100644 --- a/.github/workflows/size-check.yml +++ b/.github/workflows/size-check.yml @@ -68,4 +68,5 @@ jobs: uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: name: report_pr - path: /tmp/ot-size-report + path: | + /tmp/ot-size-report/report_pr diff --git a/script/check-size b/script/check-size index f17ad448b..2abe92ad1 100755 --- a/script/check-size +++ b/script/check-size @@ -42,7 +42,7 @@ OT_REPORT_FILE_TABLE="${OT_TMP_DIR}/report_table" readonly OT_REPORT_FILE_TABLE OT_REPORT_FILE_PR="${OT_TMP_DIR}/report_pr" -readonly OT_REPORT_FILE_TABLE +readonly OT_REPORT_FILE_PR PR_NUMBER="${PR_NUMBER:-}"