From f6ca4d60bb591c5addec569e348a8e97dcad78c8 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Sat, 23 Dec 2023 10:43:41 -0700 Subject: [PATCH] refactor: Make install_nextflow work using NextflowRelease objects --- src/functions.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/functions.ts b/src/functions.ts index f5ed6ed..2219e20 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -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 { + 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