Compare commits
2 Commits
a8eaa2a293
...
3e32b71abe
| Author | SHA1 | Date | |
|---|---|---|---|
| 3e32b71abe | |||
|
|
b07b80d8b6 |
@@ -161,7 +161,7 @@ runs:
|
|||||||
echo "需要刪除 $DELETE_COUNT 個舊映像"
|
echo "需要刪除 $DELETE_COUNT 個舊映像"
|
||||||
|
|
||||||
# 獲取要刪除的版本 (跳過前 keep-count 個)
|
# 獲取要刪除的版本 (跳過前 keep-count 個)
|
||||||
TO_DELETE=$(echo "$SORTED_VERSIONS" | jq ".[${{ inputs.keep-count }}:]")
|
TO_DELETE=$(echo "$SORTED_VERSIONS" | jq -r ".[${{ inputs.keep-count }}:] | .[] | {id: .id, name: .name, created_at: .created_at}")
|
||||||
|
|
||||||
# 初始化刪除計數器和列表
|
# 初始化刪除計數器和列表
|
||||||
DELETED_COUNT=0
|
DELETED_COUNT=0
|
||||||
|
|||||||
Reference in New Issue
Block a user