Skip to content

Commit

Permalink
fix: adds workaround hashFiles
Browse files Browse the repository at this point in the history
  • Loading branch information
luca-sartori-zupit committed Nov 28, 2024
1 parent ddd88cd commit 92fa580
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/dotnet/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,8 @@ runs:
uses: actions/cache@v3
with:
path: ~/.nuget/packages${{ inputs.CACHE_SUFFIX }}
key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
# key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}
key: ${{ runner.os }}-nuget-${{ github.run_id }}-${{ github.run_attempt }} # Temporary fix: ${{ hashFiles(format('{0}/**/packages.lock.json', inputs.WORKING_DIRECTORY)) }}
restore-keys: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }}

- name: Restore dependencies
Expand Down

0 comments on commit 92fa580

Please sign in to comment.