refactor!: Rename NextflowRelease.binaryURL to NextflowRelease.downloadURL

Another API consistency change.
This commit is contained in:
Thomas A. Christensen II 2024-02-02 11:23:51 -06:00
parent 9e1210850f
commit 085e9ce75c
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,
get_all: boolean
): Promise<string> {
const url = get_all ? release.allBinaryURL : release.binaryURL
const url = get_all ? release.allBinaryURL : release.downloadUrl
const version = release.version
core.debug(`Downloading Nextflow from ${url}`)

View file

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