@@ -1,13 +1,13 @@
|
||||
# prune-packages
|
||||
# prune-go
|
||||
|
||||
部署後的善後:正式版留最新 N 個、dev 版只留基底比最新正式版新的,剛部署的版本一定保留。任何失敗只印警告並以 0 結束。
|
||||
|
||||
## 用法
|
||||
|
||||
版本由呼叫端的 Gitea Actions 變數決定(例如 `vars.ACTION_PRUNE_PACKAGES_VERSION`),不要用分支名稱:runner 依 ref 重用舊映像檔,改了腳本不會生效,所以每次改動都發新標籤。
|
||||
版本由呼叫端的 Gitea Actions 變數決定(例如 `vars.ACTION_PRUNE_GO_VERSION`),不要用分支名稱:runner 依 ref 重用舊映像檔,改了腳本不會生效,所以每次改動都發新標籤。
|
||||
|
||||
```yaml
|
||||
- uses: https://gitea.jsc.idv.tw/actions/prune-packages@${{ vars.ACTION_PRUNE_PACKAGES_VERSION }}
|
||||
- uses: https://gitea.jsc.idv.tw/actions/prune-go@${{ vars.ACTION_PRUNE_GO_VERSION }}
|
||||
with:
|
||||
version: ...
|
||||
token: ...
|
||||
|
||||
Reference in New Issue
Block a user