Skip to content

Commit

Permalink
ci: only restore cache on release
Browse files Browse the repository at this point in the history
  • Loading branch information
viceice committed Jan 25, 2024
1 parent e6bba5e commit 836e694
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@ jobs:
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
- uses: actions/cache/restore@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: ~/.nuget/packages
# Look to see if there is a cache hit for the corresponding requirements file
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj', '**/*.props', '**/*.targets') }}
# restore-keys: |
# ${{ runner.os }}-nuget
restore-keys: |
${{ runner.os }}-nuget-
- name: restore
run: dotnet restore
Expand Down

0 comments on commit 836e694

Please sign in to comment.