feat: refactor code review workflow to include version calculation step
This commit is contained in:
@@ -3,12 +3,26 @@ on:
|
|||||||
pull_request:
|
pull_request:
|
||||||
types: [opened, synchronize]
|
types: [opened, synchronize]
|
||||||
jobs:
|
jobs:
|
||||||
|
version:
|
||||||
|
name: 計算版本號
|
||||||
|
runs-on: ubuntu
|
||||||
|
outputs:
|
||||||
|
version: ${{ steps.version.outputs.version }}
|
||||||
|
steps:
|
||||||
|
- name: 計算版本號
|
||||||
|
id: version
|
||||||
|
uses: https://gitea.jsc.idv.tw/actions/calculate-version@${{ vars.ACTION_CALCULATE_VERSION }}
|
||||||
|
with:
|
||||||
|
IS_BETA: "true"
|
||||||
code-review:
|
code-review:
|
||||||
name: 'Code Review'
|
name: Code Review
|
||||||
runs-on: ubuntu
|
runs-on: ubuntu
|
||||||
steps:
|
steps:
|
||||||
- name: Clean Action Cache
|
- name: 標註版本號
|
||||||
run: rm -rf ~/.local/share/act/_actions/*
|
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: 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@${{ github.head_ref }}
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user