From 0c9c29b59485f4aa2de36276e3da6ec2bb216b4d Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:33:03 -0500 Subject: [PATCH 1/2] Add pagination to Nextflow release list --- index.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.ts b/index.ts index 8a7e2bd..9999034 100644 --- a/index.ts +++ b/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) { From 19d25338ebb2b9b77645db942a42a253bef7d885 Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Thu, 29 Sep 2022 15:37:32 -0500 Subject: [PATCH 2/2] Bump version numbers --- CHANGELOG.md | 13 ++++++++++++- package-lock.json | 4 ++-- package.json | 2 +- 3 files changed, 15 insertions(+), 4 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 810e3c5..1f784bb 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [1.2.0] - 2022-10-29 + +## Added + +- `CAPSULE_LOG` is now set to 'none' for less verbose setup logs (#1/#2) + +## Fixed + +- Release list now paginates the API to find old versions of Nextflow (#3) + ## [1.1.0] - 2022-06-15 ### Changed @@ -27,7 +37,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - GitHub Actions workflow to test Nextflow installation and downstream usage - Documentation and license files -[unreleased]: https://github.com/MillironX/setup-nextflow/compare/v1.1.0...HEAD +[unreleased]: https://github.com/MillironX/setup-nextflow/compare/v1.2.0...HEAD +[1.2.0]: https://github.com/MillironX/setup-nextflow/compare/v1.1.1...v1.2.0 [1.1.0]: https://github.com/MillironX/setup-nextflow/compare/v1.0.1...v1.1.0 [1.0.1]: https://github.com/MillironX/setup-nextflow/compare/v1.0.0...v1.0.1 [1.0.0]: https://github.com/MillironX/setup-nextflow/releases/tag/v1.0.0 diff --git a/package-lock.json b/package-lock.json index 94c6e67..ada06ca 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "install-nextflow-action", - "version": "1.0.1", + "version": "1.2.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "install-nextflow-action", - "version": "1.0.1", + "version": "1.2.0", "license": "MIT", "dependencies": { "@actions/core": "^1.8.2", diff --git a/package.json b/package.json index 85c2909..f1498f2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "install-nextflow-action", - "version": "1.1.0", + "version": "1.2.0", "description": "", "main": "dist/index.js", "scripts": {