refactor!: Rename NextflowRelease.allBinaryURL to NextflowRelease.downloadUrlAll

Another API consistency update.
This commit is contained in:
Thomas A. Christensen II 2024-02-02 11:26:09 -06:00
parent 21ad9d9cb6
commit 1927f1a07e
Signed by: millironx
GPG key ID: B7044A3432851F64
2 changed files with 3 additions and 3 deletions

View file

@ -27,7 +27,7 @@ export async function install_nextflow(
release: NextflowRelease, release: NextflowRelease,
get_all: boolean get_all: boolean
): Promise<string> { ): Promise<string> {
const url = get_all ? release.allBinaryURL : release.downloadUrl const url = get_all ? release.downloadUrlAll : release.downloadUrl
const version = release.version const version = release.version
core.debug(`Downloading Nextflow from ${url}`) core.debug(`Downloading Nextflow from ${url}`)

View file

@ -5,7 +5,7 @@ export type NextflowRelease = {
version: string version: string
isEdge: boolean isEdge: boolean
downloadUrl: string downloadUrl: string
allBinaryURL: string downloadUrlAll: string
published_at?: string published_at?: string
} }
@ -19,7 +19,7 @@ export function nextflow_release(data: object): NextflowRelease {
version: data["tag_name"], version: data["tag_name"],
isEdge: data["prerelease"], isEdge: data["prerelease"],
downloadUrl: nextflow_bin_url(data, false), downloadUrl: nextflow_bin_url(data, false),
allBinaryURL: nextflow_bin_url(data, true) downloadUrlAll: nextflow_bin_url(data, true)
} }
return nf_release return nf_release
} }