chore(ci workflow): 將 CI 改為釋出標版並計算版本號流程

This commit is contained in:
Jeffery
2026-06-30 16:28:10 +08:00
parent ffd176a69f
commit 0c3360fd8c
+15 -19
View File
@@ -16,25 +16,21 @@ on:
# 僅在 PR 開啟 (opened) 或有新 commit 推送 (synchronize) 時觸發。 # 僅在 PR 開啟 (opened) 或有新 commit 推送 (synchronize) 時觸發。
types: [opened, synchronize] types: [opened, synchronize]
jobs: jobs:
# job 識別碼:AI 程式碼審查。 release-tag-version:
ai-code-review: name: Release Tag Version
# job 顯示名稱。
name: AI Code Review
# 指定執行於 ubuntu runner。
runs-on: ubuntu runs-on: ubuntu
# 此 job 所需的權限 (供 AI 寫回審查結果)。 outputs:
permissions: version: ${{ steps.release-tag-version.outputs.version }}
# 可寫入儲存庫內容。
contents: write
# 可在 PR 上留言/變更狀態。
pull-requests: write
# 可建立/更新 issue。
issues: write
steps: steps:
# 呼叫共用的 OpenCode 程式碼審查 composite action。 - name: 釋出並標註成品版本
- name: AI 程式碼審查 by OpenCode id: release-tag-version
# 版本以變數 ACTION_OPENCODE_CODE_REVIEW_VERSION 控制,便於統一升級。 uses: https://gitea.jsc.idv.tw/composite-actions/release-tag-version@${{ vars.ACTION_RELEASE_TAG_VERSION }}
uses: https://gitea.jsc.idv.tw/composite-actions/opencode-code-review@${{ vars.ACTION_OPENCODE_CODE_REVIEW_VERSION }}
with: with:
# 傳入留言用 token (secret),供 action 在 PR 上發表審查留言。 is_beta: true
comment_token: ${{ secrets.COMMENT_TOKEN }} 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 }}