From 88b326ba3c4e454a43dbd4eb1f89fc34e7ac05e4 Mon Sep 17 00:00:00 2001 From: Jeffery Date: Mon, 11 May 2026 08:12:12 +0000 Subject: [PATCH] feat: refactor version handling in code review workflow for consistency --- .gitea/workflows/review.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/review.yaml b/.gitea/workflows/review.yaml index 6e8b509..fb4b769 100644 --- a/.gitea/workflows/review.yaml +++ b/.gitea/workflows/review.yaml @@ -13,18 +13,19 @@ jobs: id: version uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }} with: - IS_BETA: "true" + IS_BETA: true code-review: name: Code Review runs-on: ubuntu + needs: [version] steps: - name: 標註版本號 uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }} with: - name: code-review v${{ steps.version.outputs.version }} - tag_name: v${{ steps.version.outputs.version }} + name: code-review v${{ needs.version.outputs.version }} + tag_name: v${{ needs.version.outputs.version }} - name: AI Code Review - uses: https://gitea.jsc.idv.tw/jiantw83/code-review@${{ github.head_ref }} + uses: https://gitea.jsc.idv.tw/jiantw83/code-review@v${{ needs.version.outputs.version }} with: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} OPENAI_BASE_URL: https://api.openai.com/v1