From 9422d8e68a5319e06b686249aedb592fb0b2bfe3 Mon Sep 17 00:00:00 2001 From: Adam Weigert Date: Wed, 17 Apr 2024 11:29:13 -0400 Subject: [PATCH] Always output GitHub environment value --- powershell-devops.psm1 | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/powershell-devops.psm1 b/powershell-devops.psm1 index c113712..80e4a13 100644 --- a/powershell-devops.psm1 +++ b/powershell-devops.psm1 @@ -37,9 +37,8 @@ function Set-EnvironmentVariable { } if ($Output) { "$Name=$Value" | Out-File -FilePath $env:GITHUB_OUTPUT -Append - } else { - "$Name=$Value" | Out-File -FilePath $env:GITHUB_ENV -Append } + "$Name=$Value" | Out-File -FilePath $env:GITHUB_ENV -Append } Set-Item -Path env:$Name -Value $Value -Force @@ -103,4 +102,4 @@ function Add-Path { } $env:PATH = "$Path;$env:PATH" -} \ No newline at end of file +}