From 4049d10c6d06680aa7c666e1746d400501db8de4 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Fri, 2 Feb 2024 11:23:51 -0600 Subject: [PATCH] refactor!: Rename NextflowRelease.binaryURL to NextflowRelease.downloadURL Another API consistency change. --- src/functions.ts | 2 +- src/nextflow-release.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/functions.ts b/src/functions.ts index 45daca6..7d3d465 100644 --- a/src/functions.ts +++ b/src/functions.ts @@ -27,7 +27,7 @@ export async function install_nextflow( release: NextflowRelease, get_all: boolean ): Promise { - 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}`) diff --git a/src/nextflow-release.ts b/src/nextflow-release.ts index d287c1a..50b96b6 100644 --- a/src/nextflow-release.ts +++ b/src/nextflow-release.ts @@ -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