Skip to content

Commit dbd3b8a

Browse files
authored
Fix NuGet caching
1 parent 884f0e6 commit dbd3b8a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ jobs:
8585
fetch-depth: '0'
8686
- name: Restore NuGet Cache
8787
id: restore-nuget-cache
88-
uses: actions/cache@v4
88+
uses: actions/cache/restore@v4
8989
with:
9090
path: '${{ github.workspace }}/.nuget/packages'
9191
key: "${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}-${{ hashFiles('**/dotnet-tools.json') }}"
@@ -116,7 +116,7 @@ jobs:
116116
if: always() && steps.restore-nuget-cache.outputs.cache-hit != 'true'
117117
uses: actions/cache/save@v4
118118
with:
119-
key: ${{ steps.restore-nuget-cache.outputs.cache-primary-key }}
119+
key: "${{ runner.os }}-nuget-${{ hashFiles('**/Directory.Packages.props') }}-${{ hashFiles('**/dotnet-tools.json') }}"
120120
path: '${{ github.workspace }}/.nuget/packages'
121121
- name: ⚙ Build
122122
id: build

0 commit comments

Comments
 (0)