feat: 透過 nuget.config 檔案判斷要執行的指令

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Jeffery
2026-05-06 09:18:21 +08:00
parent 440008caed
commit c1946c9f2c
+4
View File
@@ -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