File tree 1 file changed +8
-3
lines changed
1 file changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -83,13 +83,12 @@ jobs:
83
83
with :
84
84
clean : ' false'
85
85
fetch-depth : ' 0'
86
- - name : NuGet Cache
86
+ - name : Restore NuGet Cache
87
+ id : restore-nuget-cache
87
88
uses : actions/cache@v4
88
89
with :
89
90
path : ' ${{ github.workspace }}/.nuget/packages'
90
91
key : " ${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}-${{ hashFiles('**/dotnet-tools.json') }}"
91
- restore-keys : |
92
- ${{ runner.os }}-nuget-
93
92
- name : 🔨 Use .NET Core 3.1 SDK
94
93
95
94
with :
@@ -113,6 +112,12 @@ jobs:
113
112
id : restore
114
113
run : |
115
114
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'
116
121
- name : ⚙ Build
117
122
id : build
118
123
run : |
You can’t perform that action at this time.
0 commit comments