feat: refactor version handling in code review workflow for consistency
This commit is contained in:
@@ -13,18 +13,19 @@ jobs:
|
|||||||
id: version
|
id: version
|
||||||
uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
|
uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
|
||||||
with:
|
with:
|
||||||
IS_BETA: "true"
|
IS_BETA: true
|
||||||
code-review:
|
code-review:
|
||||||
name: Code Review
|
name: Code Review
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
|
needs: [version]
|
||||||
steps:
|
steps:
|
||||||
- name: 標註版本號
|
- name: 標註版本號
|
||||||
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
|
||||||
with:
|
with:
|
||||||
name: code-review v${{ steps.version.outputs.version }}
|
name: code-review v${{ needs.version.outputs.version }}
|
||||||
tag_name: v${{ steps.version.outputs.version }}
|
tag_name: v${{ needs.version.outputs.version }}
|
||||||
- name: AI Code Review
|
- 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:
|
with:
|
||||||
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
||||||
OPENAI_BASE_URL: https://api.openai.com/v1
|
OPENAI_BASE_URL: https://api.openai.com/v1
|
||||||
|
|||||||
Reference in New Issue
Block a user