From 551e7bce3b1b88ebae937fe2b2b4f2c19a3885c0 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 1 Dec 2025 11:14:40 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E8=AA=BF=E6=95=B4=E6=8C=87=E4=BB=A4?= =?UTF-8?q?=E5=8F=83=E6=95=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- action.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 236f819..895b497 100644 --- a/action.yml +++ b/action.yml @@ -144,7 +144,7 @@ runs: fi # 獲取並排序所有版本 (按創建時間降序) - SORTED_VERSIONS=$(echo "$VERSIONS_JSON" | jq -r '.versions | sort_by(.created_at) | reverse') + SORTED_VERSIONS=$(echo "$VERSIONS_JSON" | jq '.versions | sort_by(.created_at) | reverse') # 計算總數量 TOTAL_COUNT=$(echo "$SORTED_VERSIONS" | jq 'length') @@ -161,7 +161,7 @@ runs: echo "需要刪除 $DELETE_COUNT 個舊映像" # 獲取要刪除的版本 (跳過前 keep-count 個) - TO_DELETE=$(echo "$SORTED_VERSIONS" | jq -r ".[${{ inputs.keep-count }}:]") + TO_DELETE=$(echo "$SORTED_VERSIONS" | jq ".[${{ inputs.keep-count }}:]") # 初始化刪除計數器和列表 DELETED_COUNT=0 -- 2.48.1