Skip to content

Commit

Permalink
Include dotnet tools version in cache hash. (#190)
Browse files Browse the repository at this point in the history
Closes #179.
  • Loading branch information
pvginkel authored Dec 20, 2023
1 parent cf9792c commit 52e9c78
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json') }}
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json', '**/dotnet-tools.json') }}

- name: Restore dotnet tools
run: dotnet tool restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pr-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json') }}
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json', '**/dotnet-tools.json') }}

- name: Restore dotnet tools
run: dotnet tool restore
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:
id: cache
with:
path: ~/.nuget/packages
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json') }}
key: ${{ runner.os }}-nuget-v2-${{ hashFiles('**/packages.lock.json', '**/dotnet-tools.json') }}

- name: Restore Solution
run: dotnet restore -warnaserror
Expand Down

0 comments on commit 52e9c78

Please sign in to comment.