mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-22 09:49:56 +00:00
Add pagination to Nextflow release list
This commit is contained in:
parent
f9b3f5cc17
commit
0c9c29b594
1 changed files with 5 additions and 3 deletions
8
index.ts
8
index.ts
|
@ -9,9 +9,11 @@ import semver = require("semver");
|
||||||
const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow" };
|
const NEXTFLOW_REPO = { owner: "nextflow-io", repo: "nextflow" };
|
||||||
|
|
||||||
async function all_nf_releases(ok) {
|
async function all_nf_releases(ok) {
|
||||||
const { data: releases } = await ok.rest.repos.listReleases(NEXTFLOW_REPO);
|
return await ok.paginate(
|
||||||
|
ok.rest.repos.listReleases,
|
||||||
return releases;
|
NEXTFLOW_REPO,
|
||||||
|
(response) => response.data
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
async function latest_stable_release_data(ok) {
|
async function latest_stable_release_data(ok) {
|
||||||
|
|
Loading…
Reference in a new issue