mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +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(
|
||||
url: string,
|
||||
version: string
|
||||
release: NextflowRelease,
|
||||
get_all: boolean
|
||||
): Promise<string> {
|
||||
const url = get_all ? release.allBinaryURL : release.binaryURL
|
||||
const version = release.versionNumber
|
||||
|
||||
core.debug(`Downloading Nextflow from ${url}`)
|
||||
const nf_dl_path = await retry(
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
|
|
Loading…
Reference in a new issue