mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 01:46:04 +00:00
refactor!: Rename NextflowRelease.binaryURL to NextflowRelease.downloadURL
Another API consistency change.
This commit is contained in:
parent
a6f42a71d4
commit
4049d10c6d
2 changed files with 3 additions and 3 deletions
|
@ -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.binaryURL
|
const url = get_all ? release.allBinaryURL : release.downloadUrl
|
||||||
const version = release.version
|
const version = release.version
|
||||||
|
|
||||||
core.debug(`Downloading Nextflow from ${url}`)
|
core.debug(`Downloading Nextflow from ${url}`)
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
export type NextflowRelease = {
|
export type NextflowRelease = {
|
||||||
version: string
|
version: string
|
||||||
isEdge: boolean
|
isEdge: boolean
|
||||||
binaryURL: string
|
downloadUrl: string
|
||||||
allBinaryURL: string
|
allBinaryURL: string
|
||||||
published_at?: string
|
published_at?: string
|
||||||
}
|
}
|
||||||
|
@ -18,7 +18,7 @@ export function nextflow_release(data: object): NextflowRelease {
|
||||||
const nf_release: NextflowRelease = {
|
const nf_release: NextflowRelease = {
|
||||||
version: data["tag_name"],
|
version: data["tag_name"],
|
||||||
isEdge: data["prerelease"],
|
isEdge: data["prerelease"],
|
||||||
binaryURL: nextflow_bin_url(data, false),
|
downloadUrl: nextflow_bin_url(data, false),
|
||||||
allBinaryURL: nextflow_bin_url(data, true)
|
allBinaryURL: nextflow_bin_url(data, true)
|
||||||
}
|
}
|
||||||
return nf_release
|
return nf_release
|
||||||
|
|
Loading…
Reference in a new issue