refactor: Make install_nextflow work using NextflowRelease objects

This commit is contained in:
Thomas A. Christensen II 2023-12-23 10:43:41 -07:00
parent 5d8e8fd6f5
commit f6ca4d60bb
Signed by: millironx
GPG key ID: 09335146883990B9

View file

@ -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