mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-23 10:09:54 +00:00
refactor: Make install_nextflow work using NextflowRelease objects
This commit is contained in:
parent
5d8e8fd6f5
commit
f6ca4d60bb
1 changed files with 5 additions and 2 deletions
|
@ -51,9 +51,12 @@ export async function get_nextflow_release(
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function install_nextflow(
|
export async function install_nextflow(
|
||||||
url: string,
|
release: NextflowRelease,
|
||||||
version: string
|
get_all: boolean
|
||||||
): Promise<string> {
|
): Promise<string> {
|
||||||
|
const url = get_all ? release.allBinaryURL : release.binaryURL
|
||||||
|
const version = release.versionNumber
|
||||||
|
|
||||||
core.debug(`Downloading Nextflow from ${url}`)
|
core.debug(`Downloading Nextflow from ${url}`)
|
||||||
const nf_dl_path = await retry(
|
const nf_dl_path = await retry(
|
||||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||||
|
|
Loading…
Reference in a new issue