新增:registry-versions task(Go 套件庫版本,Go 專用邏輯留在 release-go)
ci / test (pull_request) Successful in 1s

This commit is contained in:
bot
2026-11-05 04:25:08 +00:00
parent 22a7a36130
commit da3f2c74bf
5 changed files with 83 additions and 6 deletions
+10 -2
View File
@@ -1,8 +1,8 @@
name: release-go
description: "發佈流程的小步驟(Docker action,bash+git):resolve-channel 依 PR 的來源與目標分支判斷通道、deploy-version 取得要部署的版本。算版本號在 next-version action。分支名稱、版本都由呼叫端傳入。需要 actions/checkout(deploy-version 要 fetch-depth: 0)"
description: "發佈流程的小步驟(Docker action,bash+git):resolve-channel 依 PR 的來源與目標分支判斷通道、registry-versions 查 Gitea Go 套件庫已有的版本(Go 專用)、deploy-version 取得要部署的版本。算版本號在 next-version action,Go 套件庫的版本用 extra_versions 傳給它。分支名稱、版本都由呼叫端傳入。需要 actions/checkout(deploy-version 要 fetch-depth: 0)"
inputs:
task:
description: "resolve-channel、deploy-version"
description: "resolve-channel、registry-versions、deploy-version"
required: true
branch:
description: "resolve-channel:PR 的來源分支名稱(例如 github.head_ref)"
@@ -22,11 +22,19 @@ inputs:
version:
description: "deploy-version:指定要部署的版本(例如 v0.5.4 或 v0.5.5-dev.2),有值就直接使用"
default: ""
package:
description: "registry-versions:Go 套件庫查詢的套件名稱(預設是儲存庫名稱)"
default: ""
token:
description: "registry-versions:查詢套件庫用的權杖(需要 read:package)"
default: ""
outputs:
channel:
description: "resolve-channel:release、dev 或 none"
version:
description: "deploy-version:要部署的版本(沒有時是空字串)"
versions:
description: "registry-versions:Go 套件庫已有的版本(空白分隔,沒有時是空字串),傳給 next-version 的 extra_versions"
skip:
description: "deploy-version:true 表示沒有版本可部署"
sha: