mirror of
https://github.com/actions/runner-images.git
synced 2025-12-13 12:48:18 +00:00
16 lines
656 B
PowerShell
16 lines
656 B
PowerShell
################################################################################
|
|
## File: Configure-SystemEnvironment.ps1
|
|
## Desc: Configures system environment variables
|
|
################################################################################
|
|
|
|
$variables = @{
|
|
"ImageVersion" = $env:IMAGE_VERSION
|
|
"ImageOS" = $env:IMAGE_OS
|
|
"AGENT_TOOLSDIRECTORY" = $env:AGENT_TOOLSDIRECTORY
|
|
"RUNNER_TOOL_CACHE" = $env:AGENT_TOOLSDIRECTORY
|
|
}
|
|
|
|
$variables.GetEnumerator() | ForEach-Object {
|
|
[Environment]::SetEnvironmentVariable($_.Key, $_.Value, "Machine")
|
|
}
|