From b628dd299fd77c6ed0e4428d7a85adfa3ce8e660 Mon Sep 17 00:00:00 2001 From: Daniel Carbone Date: Thu, 14 Sep 2023 16:38:09 -0500 Subject: [PATCH] strange --- scripts/windowsish-17.ps1 | 5 ++++- scripts/windowsish.ps1 | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/scripts/windowsish-17.ps1 b/scripts/windowsish-17.ps1 index 531df9f..dd36ebc 100755 --- a/scripts/windowsish-17.ps1 +++ b/scripts/windowsish-17.ps1 @@ -69,6 +69,9 @@ Write-Host "Dst: $Env:RUNNER_TOOL_CACHE\jq\jq.exe" Move-Item -Force -LiteralPath "$Env:RUNNER_TEMP\${_bin_name}" -Destination "$Env:RUNNER_TOOL_CACHE\jq\jq.exe" Write-Host "Adding $Env:RUNNER_TOOL_CACHE\jq\ to path..." -Add-Content "$Env:GITHUB_PATH" "$Env:RUNNER_TOOL_CACHE\jq\" +$( + "$Env:RUNNER_TOOL_CACHE\jq\" + Get-Content "$Env:GITHUB_PATH" -Raw +) | Set-Content "$Env:GITHUB_PATH" Write-Host "::endgroup::" diff --git a/scripts/windowsish.ps1 b/scripts/windowsish.ps1 index 62112ba..6f36b52 100755 --- a/scripts/windowsish.ps1 +++ b/scripts/windowsish.ps1 @@ -53,6 +53,9 @@ Write-Host "Dst: $Env:RUNNER_TOOL_CACHE\jq\jq.exe" Move-Item -Force -LiteralPath "$Env:RUNNER_TEMP\${_bin_name}" -Destination "$Env:RUNNER_TOOL_CACHE\jq\jq.exe" Write-Host "Adding $Env:RUNNER_TOOL_CACHE\jq\ to path..." -Add-Content "$Env:GITHUB_PATH" "$Env:RUNNER_TOOL_CACHE\jq\" +$( + "$Env:RUNNER_TOOL_CACHE\jq\" + Get-Content "$Env:GITHUB_PATH" -Raw +) | Set-Content "$Env:GITHUB_PATH" Write-Host "::endgroup::"