From 27aba662ca8e543be280ff4ea2cb2e9f21248178 Mon Sep 17 00:00:00 2001 From: bot Date: Thu, 5 Nov 2026 03:22:15 +0000 Subject: [PATCH] =?UTF-8?q?=E8=AA=BF=E6=95=B4=EF=BC=9AGo=20=E5=B0=88?= =?UTF-8?q?=E7=94=A8=E7=9A=84=20action=20=E5=90=8D=E7=A8=B1=E5=8A=A0=20-go?= =?UTF-8?q?=20=E5=BE=8C=E7=B6=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 6 +++--- action.yml | 2 +- go.mod | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index bdcfefc..507846b 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# release +# release-go 發佈流程的小步驟,`task` 選一個:`resolve-channel`(PR 來源與目標分支 → release/dev/none)、`next-version`(算下一版與是否跳過)、`deploy-version`(取得要部署的版本與提交)。 ## 用法 -版本由呼叫端的 Gitea Actions 變數決定(例如 `vars.ACTION_RELEASE_VERSION`),不要用分支名稱:runner 依 ref 重用舊映像檔,改了腳本不會生效,所以每次改動都發新標籤。 +版本由呼叫端的 Gitea Actions 變數決定(例如 `vars.ACTION_RELEASE_GO_VERSION`),不要用分支名稱:runner 依 ref 重用舊映像檔,改了腳本不會生效,所以每次改動都發新標籤。 ```yaml -- uses: https://gitea.jsc.idv.tw/actions/release@${{ vars.ACTION_RELEASE_VERSION }} +- uses: https://gitea.jsc.idv.tw/actions/release-go@${{ vars.ACTION_RELEASE_GO_VERSION }} with: task: ... ``` diff --git a/action.yml b/action.yml index cefa484..76b13f6 100644 --- a/action.yml +++ b/action.yml @@ -1,4 +1,4 @@ -name: release +name: release-go description: "發佈流程的小步驟(Docker action,bash+git+curl):resolve-channel 依 PR 的來源與目標分支判斷通道、next-version 算下一版、deploy-version 取得要部署的版本。分支名稱、版本、token 都由呼叫端傳入。需要 actions/checkout(next-version、deploy-version 要 fetch-depth: 0)" inputs: task: diff --git a/go.mod b/go.mod index 67d8093..2ef4973 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,3 @@ -module gitea.jsc.idv.tw/actions/release +module gitea.jsc.idv.tw/actions/release-go go 1.27.1