Skip to content

Commit

Permalink
trying without stupid
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Sep 14, 2023
1 parent f6b58ba commit 183bc8d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 21 deletions.
2 changes: 1 addition & 1 deletion action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}'
Expand Down
11 changes: 1 addition & 10 deletions scripts/windowsish-17.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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::"
11 changes: 1 addition & 10 deletions scripts/windowsish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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::"

0 comments on commit 183bc8d

Please sign in to comment.