diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 33cbfe7..a9fe51d 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -52,19 +52,27 @@ jobs: # Note the appending of 0 to the key: You can modify this value to # invalidate the cache. - uses: actions/cache@v4 + id: nuget-packages + env: + cache-name: nuget-package-cache with: path: ${{ github.workspace }}/.nuget/packages key: ${{ runner.os }}-nuget-${{ hashFiles('**/*.csproj') }} restore-keys: | - ${{ runner.os }}-nuget-0 + ${{ runner.os }}-${{ env.cache-name }} - name: List NuGet Packages if: ${{ steps.nuget-packages.outputs.cache-hit == 'true' }} continue-on-error: true run: | - echo "Cached NuGet packages:" + echo "Using cached NuGet packages:" ls -lh ~/.nuget/packages + - name: List NuGet Packages + if: ${{ steps.nuget-packages.outputs.cache-hit != 'true' }} + continue-on-error: true + run: echo "Not using cached NuGet packages." + - name: Restore NuGet packages run: nuget restore AutoTx.sln