From 0c3360fd8cc4577ae6314d9d46596fe3e2f53126 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Tue, 30 Jun 2026 16:28:10 +0800 Subject: [PATCH] =?UTF-8?q?chore(ci=20workflow):=20=E5=B0=87=20CI=20?= =?UTF-8?q?=E6=94=B9=E7=82=BA=E9=87=8B=E5=87=BA=E6=A8=99=E7=89=88=E4=B8=A6?= =?UTF-8?q?=E8=A8=88=E7=AE=97=E7=89=88=E6=9C=AC=E8=99=9F=E6=B5=81=E7=A8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yaml | 34 +++++++++++++++------------------- 1 file changed, 15 insertions(+), 19 deletions(-) diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 8013bc9..44a1521 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -16,25 +16,21 @@ on: # 僅在 PR 開啟 (opened) 或有新 commit 推送 (synchronize) 時觸發。 types: [opened, synchronize] jobs: - # job 識別碼:AI 程式碼審查。 - ai-code-review: - # job 顯示名稱。 - name: AI Code Review - # 指定執行於 ubuntu runner。 + release-tag-version: + name: Release Tag Version runs-on: ubuntu - # 此 job 所需的權限 (供 AI 寫回審查結果)。 - permissions: - # 可寫入儲存庫內容。 - contents: write - # 可在 PR 上留言/變更狀態。 - pull-requests: write - # 可建立/更新 issue。 - issues: write + outputs: + version: ${{ steps.release-tag-version.outputs.version }} steps: - # 呼叫共用的 OpenCode 程式碼審查 composite action。 - - name: AI 程式碼審查 by OpenCode - # 版本以變數 ACTION_OPENCODE_CODE_REVIEW_VERSION 控制,便於統一升級。 - uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }} + - name: 釋出並標註成品版本 + id: release-tag-version + uses: https://gitea.jsc.idv.tw/composite-actions/release-tag-version@${{ vars.ACTION_RELEASE_TAG_VERSION }} with: - # 傳入留言用 token (secret),供 action 在 PR 上發表審查留言。 - comment_token: ${{ secrets.COMMENT_TOKEN }} + is_beta: true + calculate-version: + name: Calculate Version + runs-on: ubuntu + needs: release-tag-version + steps: + - name: 計算版本號 + uses: https://gitea.jsc.idv.tw/docker-actions/calculate-version@v${{ needs.release-tag-version.outputs.version }}