Skip to content

Commit

Permalink
versions....
Browse files Browse the repository at this point in the history
  • Loading branch information
dcarbone committed Nov 19, 2024
1 parent b00856f commit 3bad70f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion scripts/unixish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ else
_dl_path="$RUNNER_TEMP/${_root_name}/${_dl_name}"
fi

_dl_url="${_base_url}/$YQ_VERSION/${_dl_name}"
# default to _something_...
_version="${YQ_VERSION:-'v4.44.3'}"

_dl_url="${_base_url}/${_version}/${_dl_name}"

echo '::endgroup::'

Expand Down
10 changes: 9 additions & 1 deletion scripts/windowsish.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,15 @@ else
New-Item "$Env:RUNNER_TEMP\${_root_name}\" -ItemType Directory -Force
}

$_dl_url = "${_base_url}/$Env:YQ_VERSION/${_dl_name}"
$_version = "$Env:YQ_VERSION"

# default to _something_...
if ($_version -eq "")
{
$_version = = "v4.44.3"
}

$_dl_url = "${_base_url}/${_version}/${_dl_name}"

Write-Host "::endgroup::"

Expand Down

0 comments on commit 3bad70f

Please sign in to comment.