Skip to content

Commit a8d6ae6

Browse files
JoeRobichrenovate[bot]
authored andcommitted
Update NuGet Cache
1 parent 8c873bc commit a8d6ae6

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

.github/workflows/ci.yml

+8-3
Original file line numberDiff line numberDiff 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/[email protected]
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: |

0 commit comments

Comments
 (0)