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 5a5c42e549
commit 9a573cd481

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