mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-23 10:09:54 +00:00
feat!: Remove Octkit conversion function for NextflowRelease
This commit is contained in:
parent
ea3e21d0fa
commit
c61ec5549a
1 changed files with 0 additions and 15 deletions
|
@ -9,21 +9,6 @@ export type NextflowRelease = {
|
||||||
published_at?: string
|
published_at?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Converts the raw OctoKit data into a structured NextflowRelease
|
|
||||||
* @param data A "release" data struct from OctoKit
|
|
||||||
* @returns `data` converted into a `NextflowRelease`
|
|
||||||
*/
|
|
||||||
export function nextflow_release(data: object): NextflowRelease {
|
|
||||||
const nf_release: NextflowRelease = {
|
|
||||||
version: data["tag_name"],
|
|
||||||
isEdge: data["prerelease"],
|
|
||||||
downloadUrl: nextflow_bin_url(data, false),
|
|
||||||
downloadUrlAll: nextflow_bin_url(data, true)
|
|
||||||
}
|
|
||||||
return nf_release
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the download URL of a Nextflow binary
|
* Gets the download URL of a Nextflow binary
|
||||||
* @param release A "release" data struct from OctoKit
|
* @param release A "release" data struct from OctoKit
|
||||||
|
|
Loading…
Reference in a new issue