refactor: rename keep versions input
This commit is contained in:
@@ -24,7 +24,7 @@ Action 會依序嘗試以下來源:
|
||||
| 名稱 | 類型 | 預設值 | 說明 |
|
||||
| --- | --- | --- | --- |
|
||||
| `RUNNER_TOKEN` | string | - | Gitea API token,優先順序最高 |
|
||||
| `KEEP_VERSIONS` | integer string | `2` | 每個套件要保留的最新版本數,必須是整數且 `>= 0` |
|
||||
| `KEEP_COUNT` | integer string | `2` | 每個套件要保留的最新版本數,必須是整數且 `>= 0` |
|
||||
|
||||
## Log 行為
|
||||
|
||||
@@ -32,7 +32,7 @@ Action 會依序嘗試以下來源:
|
||||
|
||||
- `Trying token from ...`
|
||||
- `Using token from ...`
|
||||
- `keep_versions=...`
|
||||
- `keep_count=...`
|
||||
- `GET /api/v1/... -> 200 OK`
|
||||
- `Candidate to delete: ...`
|
||||
- `Deleted package ... -> 204 No Content`
|
||||
@@ -48,7 +48,7 @@ jobs:
|
||||
- uses: ./
|
||||
with:
|
||||
RUNNER_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
KEEP_VERSIONS: 2
|
||||
KEEP_COUNT: 2
|
||||
```
|
||||
|
||||
## 測試
|
||||
|
||||
Reference in New Issue
Block a user