mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +00:00
fix: Support versions of Nextflow without "all" variants
This commit is contained in:
parent
99c654d38a
commit
aedbf9a630
1 changed files with 7 additions and 2 deletions
|
@ -39,6 +39,11 @@ export function nextflow_bin_url(release: object, get_all: boolean): string {
|
|||
})[0]
|
||||
|
||||
const dl_asset = get_all ? all_asset : regular_asset
|
||||
|
||||
return dl_asset.browser_download_url
|
||||
if (dl_asset) {
|
||||
return dl_asset.browser_download_url
|
||||
} else {
|
||||
// Old pre-release versions of Nextflow didn't have an "all" variant. To
|
||||
// avoid downstream errors, substitute the regular url here.
|
||||
return regular_asset.browser_download_url
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue