From 298c570ea546c8cc52722efabade47d18f10ab0c Mon Sep 17 00:00:00 2001 From: Daniel Marbach Date: Tue, 13 Oct 2026 18:21:17 +0200 Subject: [PATCH 1/2] Remove directory creation for nuget cache locations Removed the creation of nuget packages and http cache directories. --- .github/actions/nuget-cache-location/action.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/actions/nuget-cache-location/action.yml b/.github/actions/nuget-cache-location/action.yml index 6aeea6fca1..a7c2677638 100644 --- a/.github/actions/nuget-cache-location/action.yml +++ b/.github/actions/nuget-cache-location/action.yml @@ -9,6 +9,5 @@ runs: 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 From 8961b7eb10fb3a39fdba4d46bc8cacc76c3a854d Mon Sep 17 00:00:00 2001 From: Daniel Marbach Date: Tue, 13 Oct 2026 18:23:40 +0200 Subject: [PATCH 2/2] Remove unnecessary extra check --- .github/actions/nuget-cache-location/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/nuget-cache-location/action.yml b/.github/actions/nuget-cache-location/action.yml index a7c2677638..939022aa38 100644 --- a/.github/actions/nuget-cache-location/action.yml +++ b/.github/actions/nuget-cache-location/action.yml @@ -4,7 +4,7 @@ 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'