feat: 修正刪除的 API #18

Merged
jiantw83 merged 1 commits from develop into master 2025-12-01 06:12:01 +00:00
Showing only changes of commit 806e385b86 - Show all commits

View File

@@ -74,7 +74,7 @@ echo "$TO_DELETE" | jq -c '.[]' | while read -r version; do
else
# 實際刪除
DELETE_RESPONSE=$(curl -s -w "HTTP_STATUS:%{http_code}" \
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_NAME?token=$TOKEN" \
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_ID?token=$TOKEN" \
-H "Accept: application/json")
HTTP_STATUS=$(echo "$DELETE_RESPONSE" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)