From 1a2cb4f8725637734d73f54ddd402d23308a4959 Mon Sep 17 00:00:00 2001 From: Dino Infantino Date: Thu, 23 Jun 2022 10:51:33 +0100 Subject: [PATCH] Fix Add-Path for self-hosted Windows --- src/scripts/win32.ps1 | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scripts/win32.ps1 b/src/scripts/win32.ps1 index 41457399a..c021c893f 100644 --- a/src/scripts/win32.ps1 +++ b/src/scripts/win32.ps1 @@ -88,6 +88,7 @@ Function Add-Path { } if ($env:GITHUB_PATH) { Add-Content $PathItem -Path $env:GITHUB_PATH -Encoding utf8 + $env:PATH += "$PathItem;" } else { $newPath = (Get-ItemProperty -Path 'hkcu:\Environment' -Name PATH).Path.replace("$PathItem;", '') $newPath = $PathItem + ';' + $newPath