mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-22 04:48:18 +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" };
|
||||
|
||||
async function all_nf_releases(ok) {
|
||||
const { data: releases } = await ok.rest.repos.listReleases(NEXTFLOW_REPO);
|
||||
|
||||
return releases;
|
||||
return await ok.paginate(
|
||||
ok.rest.repos.listReleases,
|
||||
NEXTFLOW_REPO,
|
||||
(response) => response.data
|
||||
);
|
||||
}
|
||||
|
||||
async function latest_stable_release_data(ok) {
|
||||
|
|
Loading…
Reference in a new issue