mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-26 03:09:56 +00:00
refactor: Make install_nextflow work using NextflowRelease objects
This commit is contained in:
parent
5a5c42e549
commit
9a573cd481
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