don't run restore steps if nuget cache restored
This commit is contained in:
parent
164532dda5
commit
edc482e472
1 changed files with 5 additions and 1 deletions
|
@ -54,12 +54,16 @@ jobs:
|
|||
${{ runner.os }}-nuget-
|
||||
- name: dotnet tool restore
|
||||
run: dotnet tool restore
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
- name: dotnet restore
|
||||
run: dotnet restore -p:Configuration=Release
|
||||
run: dotnet restore -p:Configuration=Release --configfile nuget.config --locked-mode
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
- name: dotnet workload restore
|
||||
run: dotnet workload restore
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
- name: dotnet workload install wasm-tools
|
||||
run: dotnet workload install wasm-tools
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
- name: save nuget cache
|
||||
uses: actions/cache/save@v3
|
||||
if: steps.nuget-cache.outputs.cache-hit != 'true'
|
||||
|
|
Loading…
Reference in a new issue