Skip to content

Commit d6d0790

Browse files
committed
Use AGENT_TEMPDIRECTORY for Push-Location workaround
1 parent 385ab91 commit d6d0790

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

eng/publish/PublishPolyglotNotebooksHelper.psm1

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -121,11 +121,7 @@ function PublishStableExtensionAndNuGetPackages {
121121
"Microsoft.DotNet.Interactive"
122122
)
123123

124-
# Run dotnet CLI from outside the repo so global.json in the sources directory
125-
# does not force an unavailable SDK during publish-only operations.
126-
# Use $HOME rather than $env:TEMP to avoid inheriting any config files
127-
# that other processes might have placed in the temp directory.
128-
Push-Location $HOME
124+
Push-Location $env:AGENT_TEMPDIRECTORY
129125
try {
130126
Get-ChildItem "$artifactsPath\packages\Shipping\*.nupkg" -Exclude '*.symbols.nupkg' | ForEach-Object {
131127
$nugetPackagePath = $_.FullName

0 commit comments

Comments
 (0)