調整:Go 專用的 action 名稱加 -go 後綴
ci / test (push) Successful in 2m54s

This commit is contained in:
bot
2026-11-05 03:22:15 +00:00
parent 3567ef8844
commit ce3ab59c66
4 changed files with 6 additions and 6 deletions
+3 -3
View File
@@ -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: ...