Merge pull request 'fix: 修正刪除 API 的參數' (#22) from develop into master
All checks were successful
/ CD > 發布專案 (push) Successful in 4s
All checks were successful
/ CD > 發布專案 (push) Successful in 4s
Reviewed-on: #22
This commit is contained in:
@@ -90,7 +90,7 @@ while IFS= read -r version; do
|
||||
else
|
||||
# 實際刪除
|
||||
DELETE_RESPONSE=$(curl -s -w "\nHTTP_STATUS:%{http_code}" \
|
||||
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_ID?token=$TOKEN" \
|
||||
-X DELETE "$GITEA_SERVER/api/v1/packages/$OWNER/container/$PACKAGE_NAME/$VERSION_NAME?token=$TOKEN" \
|
||||
-H "Accept: application/json")
|
||||
|
||||
DELETE_HTTP_STATUS=$(echo "$DELETE_RESPONSE" | grep -o "HTTP_STATUS:[0-9]*" | cut -d: -f2)
|
||||
|
||||
Reference in New Issue
Block a user