diff --git a/.github/actions/nuget-cache-location/action.yml b/.github/actions/nuget-cache-location/action.yml index 6aeea6fca1..939022aa38 100644 --- a/.github/actions/nuget-cache-location/action.yml +++ b/.github/actions/nuget-cache-location/action.yml @@ -4,11 +4,10 @@ runs: using: composite steps: - name: Move NuGet caches to the temp drive - if: runner.os == 'Windows' && runner.environment == 'github-hosted' + if: runner.os == 'Windows' shell: pwsh run: | $packages = Join-Path $Env:RUNNER_TEMP 'nuget\packages' $httpCache = Join-Path $Env:RUNNER_TEMP 'nuget\http-cache' - New-Item -ItemType Directory -Force -Path $packages, $httpCache | Out-Null "NUGET_PACKAGES=$packages" >> $Env:GITHUB_ENV "NUGET_HTTP_CACHE_PATH=$httpCache" >> $Env:GITHUB_ENV