mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 09:49:56 +00:00
refactor: Place latest stable release conversion inline
This commit is contained in:
parent
7473a3926d
commit
82d97e2453
1 changed files with 3 additions and 10 deletions
|
@ -68,19 +68,12 @@ export async function pull_releases(
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function latest_stable_release_data(
|
export async function pull_latest_stable_release(
|
||||||
ok: InstanceType<typeof GitHub>
|
ok: InstanceType<typeof GitHub>
|
||||||
): Promise<object> {
|
): Promise<NextflowRelease> {
|
||||||
const { data: stable_release } = await ok.rest.repos.getLatestRelease(
|
const { data: stable_release } = await ok.rest.repos.getLatestRelease(
|
||||||
NEXTFLOW_REPO
|
NEXTFLOW_REPO
|
||||||
)
|
)
|
||||||
|
|
||||||
return stable_release
|
return nextflow_release(stable_release)
|
||||||
}
|
|
||||||
|
|
||||||
export async function pull_latest_stable_release(
|
|
||||||
ok: InstanceType<typeof GitHub>
|
|
||||||
): Promise<NextflowRelease> {
|
|
||||||
const latest_release = await latest_stable_release_data(ok)
|
|
||||||
return nextflow_release(latest_release)
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue