From 183bc8df0ea4f71c3f9cf0903763617964bc4e45 Mon Sep 17 00:00:00 2001 From: Daniel Carbone Date: Thu, 14 Sep 2023 17:14:50 -0500 Subject: [PATCH] trying without stupid --- action.yaml | 2 +- scripts/windowsish-17.ps1 | 11 +---------- scripts/windowsish.ps1 | 11 +---------- 3 files changed, 3 insertions(+), 21 deletions(-) diff --git a/action.yaml b/action.yaml index 4f93802..d165648 100644 --- a/action.yaml +++ b/action.yaml @@ -72,7 +72,7 @@ runs: } - name: 'Install jq - Windows-ish non-1.7' - if: runner.os == 'Windows' && (inputs.version == '1.5' || inputs.version == '1.6') && (steps.jq-check-windows.outputs.found == 'false' || inputs.force == 'true') + if: runner.os == 'Windows' && (inputs.version == '1.5' || inputs.version == '1.6') && (steps.jq-check-windows.outputs.found == 'false' || inputs.force == 'true') shell: powershell env: JQ_VERSION: '${{ inputs.version }}' diff --git a/scripts/windowsish-17.ps1 b/scripts/windowsish-17.ps1 index fb037ee..c82f951 100755 --- a/scripts/windowsish-17.ps1 +++ b/scripts/windowsish-17.ps1 @@ -56,12 +56,6 @@ Invoke-WebRequest -Uri "${_dl_url}" -OutFile "${_dl_path}" Write-Host "::endgroup::" -Write-Host "::group::Running choco uninstall jq" - -choco uninstall jq - -Write-Host "::endgroup::" - # install into tool cache Write-Host "::group::Copying to tool cache" @@ -75,9 +69,6 @@ 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..." -$( - "$Env:RUNNER_TOOL_CACHE\jq\" - Get-Content "$Env:GITHUB_PATH" -Raw -) | Set-Content "$Env:GITHUB_PATH" +Add-Content "$Env:GITHUB_PATH" "$Env:RUNNER_TOOL_CACHE\jq\" Write-Host "::endgroup::" diff --git a/scripts/windowsish.ps1 b/scripts/windowsish.ps1 index 0157a34..62112ba 100755 --- a/scripts/windowsish.ps1 +++ b/scripts/windowsish.ps1 @@ -40,12 +40,6 @@ Invoke-WebRequest -Uri "${_dl_url}" -OutFile "${_dl_path}" Write-Host "::endgroup::" -Write-Host "::group::Running choco uninstall jq" - -choco uninstall jq - -Write-Host "::endgroup::" - # install into tool cache Write-Host "::group::Copying to tool cache" @@ -59,9 +53,6 @@ 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..." -$( - "$Env:RUNNER_TOOL_CACHE\jq\" - Get-Content "$Env:GITHUB_PATH" -Raw -) | Set-Content "$Env:GITHUB_PATH" +Add-Content "$Env:GITHUB_PATH" "$Env:RUNNER_TOOL_CACHE\jq\" Write-Host "::endgroup::"