Skip to content

Commit

Permalink
Fix cache key for nuget packages in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mpdreamz committed Oct 10, 2024
1 parent 4ba40a1 commit 7e6fd14
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ concurrency:

env:
ELASTIC_STACK_VERSION: '8.4.0'
NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages

jobs:

Expand All @@ -34,11 +35,11 @@ jobs:
- uses: actions/checkout@v4
- name: Bootstrap Action Workspace
uses: ./.github/workflows/bootstrap

- uses: actions/cache@v4
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/packages.lock.json') }}
path: ${{ github.workspace }}/.nuget/packages
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.[cf]sproj*') }}-${{ hashFiles('**/*.Build.props') }}
restore-keys: |
${{ runner.os }}-nuget-
Expand Down

0 comments on commit 7e6fd14

Please sign in to comment.