mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-24 10:29:56 +00:00
feat: Make get_nextflow_release compatible with arrays
Although it seems like we're moving backwards, the new API only supports a single data dump. I still like the iterative nature rather, so tack on array support.
This commit is contained in:
parent
1c4afed1ea
commit
214ce026da
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ async function get_latest_stable_nextflow_release(
|
||||||
|
|
||||||
export async function get_nextflow_release(
|
export async function get_nextflow_release(
|
||||||
version: string,
|
version: string,
|
||||||
releases: AsyncGenerator<NextflowRelease>
|
releases: NextflowRelease[] | AsyncGenerator<NextflowRelease>
|
||||||
): Promise<NextflowRelease> {
|
): Promise<NextflowRelease> {
|
||||||
// First, check to see if we are using a "latest-*" version system, and return
|
// First, check to see if we are using a "latest-*" version system, and return
|
||||||
// early
|
// early
|
||||||
|
|
Loading…
Reference in a new issue