feat: 透過 nuget.config 檔案判斷要執行的指令
Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
@@ -7,6 +7,10 @@ runs:
|
|||||||
- uses: actions/checkout@v6
|
- uses: actions/checkout@v6
|
||||||
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
|
- uses: https://gitea.jsc.idv.tw/actions/cache-nuget@v0.0.2
|
||||||
- run: dotnet restore
|
- run: dotnet restore
|
||||||
|
if: ${{ hashFiles('nuget.config') == '' }}
|
||||||
|
shell: bash
|
||||||
|
- run: dotnet restore --configfile nuget.config
|
||||||
|
if: ${{ hashFiles('nuget.config') != '' }}
|
||||||
shell: bash
|
shell: bash
|
||||||
- run: dotnet build --no-restore
|
- run: dotnet build --no-restore
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|||||||
Reference in New Issue
Block a user