chore: refine logging output for clarity and conciseness in entrypoint script and README
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
- 預設每個套件保留最新 `2` 個版本。
|
||||
- 直接刪除超出保留數量的舊版本。
|
||||
- 只處理你指定的 NuGet 套件名稱,可一次指定多個。
|
||||
- 輸出可搜尋的 log,包含 API status、request id 與 summary。
|
||||
- 輸出精簡 log,只保留必要的錯誤與 summary。
|
||||
- 每頁預設抓取 100 筆版本,可用 `PAGE_LIMIT` 調整。
|
||||
|
||||
## Token 來源順序
|
||||
@@ -31,16 +31,11 @@ Action 會依序嘗試以下來源:
|
||||
|
||||
## Log 行為
|
||||
|
||||
執行時會輸出這類資訊:
|
||||
執行時只會輸出必要資訊:
|
||||
|
||||
- `Trying token from ...`
|
||||
- `Using token from ...`
|
||||
- `keep_count=...`
|
||||
- `package_names=...`
|
||||
- `GET /api/v1/... -> 200 OK`
|
||||
- `Candidate to delete: ...`
|
||||
- `Deleted package ... -> 204 No Content`
|
||||
- `ERROR: ...`
|
||||
- `Summary: packages=... versions=... kept=... candidates=... deleted=... errors=...`
|
||||
- `No matching packages found for requested package_names` 之類的少量狀態訊息
|
||||
|
||||
## Workflow 範例
|
||||
|
||||
|
||||
Reference in New Issue
Block a user