mirror of
https://github.com/julia-actions/setup-julia.git
synced 2026-02-16 04:56:53 +08:00
Refactor getJuliaVersion to make it testable
This commit is contained in:
@@ -10,7 +10,8 @@ async function run() {
|
||||
try {
|
||||
const versionInput = core.getInput('version')
|
||||
const arch = core.getInput('arch')
|
||||
const version = await installer.getJuliaVersion(versionInput)
|
||||
const availableReleases = await installer.getJuliaReleases()
|
||||
const version = await installer.getJuliaVersion(availableReleases, versionInput)
|
||||
core.debug(`selected Julia version: ${arch}/${version}`)
|
||||
|
||||
// Search in cache
|
||||
|
||||
Reference in New Issue
Block a user