File tree Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Expand file tree Collapse file tree 1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,12 @@ jobs:
8383 with :
8484 clean : ' false'
8585 fetch-depth : ' 0'
86- - name : NuGet Cache
86+ - name : Restore NuGet Cache
87+ id : restore-nuget-cache
8788 uses : actions/cache@v4
8889 with :
8990 path : ' ${{ github.workspace }}/.nuget/packages'
9091 key : " ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}-${{ hashFiles('**/dotnet-tools.json') }}"
91- restore-keys : |
92- ${{ runner.os }}-nuget-
9392 - name : 🔨 Use .NET Core 3.1 SDK
9493 uses : actions/setup-dotnet@v4.3.0
9594 with :
@@ -113,6 +112,12 @@ jobs:
113112 id : restore
114113 run : |
115114 dotnet nuke Restore --skip
115+ - name : Update NuGet Cache
116+ if : always() && steps.restore-nuget-cacheoutputs.cache-hit != 'true'
117+ uses : actions/cache/save@v4
118+ with :
119+ key : ${{ steps.restore-nuget-cache.outputs.cache-primary-key }}
120+ path : ' ${{ github.workspace }}/.nuget/packages'
116121 - name : ⚙ Build
117122 id : build
118123 run : |
You can’t perform that action at this time.
0 commit comments