Skip to content

Commit 38e6887

Browse files
author
Petr Sramek
committed
update 2
1 parent 0d7ef07 commit 38e6887

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/actions/build/action.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,20 @@ runs:
5555
dotnet-version: ${{ inputs.dotnet_sdk_version }}
5656
cache: true
5757
cache-dependency-path: "**/packages.lock.json"
58-
58+
59+
- name: Restore NuGet packages
60+
id: cache-nuget
61+
uses: actions/cache@v3.3.2
62+
with:
63+
path: |
64+
~/.nuget/packages
65+
key: ${{ runner.os }}-nuget-cache-${{ hashFiles('inputs.search-pattern') }}
66+
restore-keys: |
67+
${{ runner.os }}-nuget-cache-${{ hashFiles('inputs.search-pattern') }}
68+
5969
- name: 'Restore packages with .NET CLI'
6070
shell: bash
61-
run: dotnet restore ${{ inputs.search-pattern }}
71+
run: dotnet restore
6272

6373
- name: 'Build with .NET CLI'
6474
shell: bash

0 commit comments

Comments
 (0)