Author SHA1 Message Date
jiantw83 057839d868 fix(workflows): 修正共用 workflow 檔案路徑
CI / 程式碼審查 (pull_request) Successful in 1s
2026-06-25 06:11:48 +00:00
jiantw83 094a267a49 fix(workflows): 保留 job id 並補上中文顯示名稱
CI / 程式碼審查 (pull_request) Failing after 0s
2026-06-25 06:03:38 +00:00
jiantw83 30f5b8d6b6 fix(workflows): 補上共用 workflow 版本參照
CI / ci (pull_request) Failing after 0s
2026-06-25 06:00:27 +00:00
jiantw83 f24d2bc600 chore(workflows): 改用共用 CI/CD workflow
CI / ci (pull_request) Failing after 0s
2026-06-25 05:56:51 +00:00
jiantw83 5a4f350c57 Merge pull request 'chore: adjust review workflow' (#4) from feat/ai_code_review into develop
Reviewed-on: actions/cache-nuget#4
2026-05-15 16:10:20 +00:00
jiantw83 108dc8af59 chore: adjust review workflow 2026-05-15 16:08:09 +00:00
jiantw83 be38f507ee feat: update master.yaml job names and add review.yaml workflow for AI code review 2026-05-13 03:01:18 +00:00
jiantw83 eeb01fcfb3 更新 action.yml 2026-04-08 06:04:49 +00:00
4 changed files with 38 additions and 29 deletions
+15
View File
@@ -0,0 +1,15 @@
name: CD
on:
push:
branches:
- master
jobs:
cd:
name: 發布專案
uses: https://gitea.jsc.idv.tw/workflows/cd/.gitea/workflows/action.yaml@master
with:
CALCULATE_VERSION: ${{ vars.ACTION_CALCULATE_VERSION }}
RELEASE_VERSION: ${{ vars.ACTION_RELEASE_VERSION }}
CLEANUP_RELEASE_VERSION: ${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
secrets:
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
+18
View File
@@ -0,0 +1,18 @@
name: CI
on:
pull_request:
branches-ignore:
- master
types: [opened, synchronize]
jobs:
ci:
name: 程式碼審查
uses: https://gitea.jsc.idv.tw/workflows/ci/.gitea/workflows/action.yaml@master
with:
CODE_REVIEW_VERSION: ${{ vars.ACTION_CODE_REVIEW_VERSION }}
CODE_REVIEW_TOOL: ${{ vars.CODE_REVIEW_TYPE }}
CODE_REVIEW_BASE_URL: ${{ vars.CODE_REVIEW_BASE_URL }}
CODE_REVIEW_PROVIDER: ${{ vars.CODE_REVIEW_PROVIDER }}
CODE_REVIEW_MODEL: ${{ vars.CODE_REVIEW_MODEL }}
secrets:
GITEA_TOKEN: ${{ secrets.RUNNER_TOKEN }}
-27
View File
@@ -1,27 +0,0 @@
on:
push:
branches:
- master
jobs:
version:
name: "CD > 計算版本號"
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 }}
release:
name: "CD > 發布專案"
runs-on: ubuntu
needs: version
steps:
- name: 發布專案
uses: akkuman/gitea-release-action@${{ vars.ACTION_RELEASE_VERSION }}
with:
tag_name: "v${{ needs.version.outputs.version }}"
- name: 清理成品
uses: https://gitea.jsc.idv.tw/actions/cleanup-release@${{ vars.ACTION_CLEANUP_RELEASE_VERSION }}
with:
RUNNER_TOKEN: ${{ secrets.RUNNER_TOKEN }}
+5 -2
View File
@@ -1,5 +1,8 @@
name: 'Cache NuGet Packages' name: 'Cache NuGet Packages'
description: '快取 NUGET 套件' description: '快取 NUGET 套件'
inputs:
cache-arch:
description: '指定快取 NUGET 套件的架構,避免還原失敗'
outputs: outputs:
cache-hit: cache-hit:
description: '表示是否命中快取' description: '表示是否命中快取'
@@ -12,6 +15,6 @@ runs:
uses: actions/cache@v4 uses: actions/cache@v4
with: with:
path: ~/.nuget/packages path: ~/.nuget/packages
key: ${{ runner.os }}-${{ runner.arch }}-nuget-${{ hashFiles('NuGet.Config', '**/*.sln', '**/*.csproj', '**/global.json', '**/packages.lock.json', '**/Directory.Build.props', '**/Directory.Build.targets') }} key: ${{ inputs.cache-arch || runner.os }}-nuget-${{ hashFiles('NuGet.Config', '**/*.sln', '**/*.csproj', '**/global.json', '**/packages.lock.json', '**/Directory.Build.props', '**/Directory.Build.targets') }}
restore-keys: | restore-keys: |
${{ runner.os }}-${{ runner.arch }}-nuget- ${{ inputs.cache-arch || runner.os }}-nuget-