2 Commits

Author SHA1 Message Date
jiantw83 0dad948ccd 更新 action.yml
修改描述
2026-05-06 01:27:05 +00:00
Jeffery c1946c9f2c feat: 透過 nuget.config 檔案判斷要執行的指令
Co-authored-by: Copilot <copilot@github.com>
2026-05-06 09:18:21 +08:00
+5 -1
View File
@@ -1,5 +1,5 @@
name: 'DOTNET QC'
description: '品質檢查 NUGET 套件'
description: '品質檢查 .NET 套件'
author: 'Jeffery'
runs:
using: 'composite'
@@ -7,6 +7,10 @@ runs:
- uses: actions/checkout@v6
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
- run: dotnet restore
if: ${{ hashFiles('nuget.config') == '' }}
shell: bash
- run: dotnet restore --configfile nuget.config
if: ${{ hashFiles('nuget.config') != '' }}
shell: bash
- run: dotnet build --no-restore
shell: bash