Merge pull request #3 from MillironX/fix/paginate

This commit is contained in:
Thomas A. Christensen II 2022-09-29 20:38:50 +00:00 committed by GitHub
commit 5fb6055651
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 20 additions and 7 deletions

View file

@ -7,6 +7,16 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
## [Unreleased] ## [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 ## [1.1.0] - 2022-06-15
### Changed ### 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 - GitHub Actions workflow to test Nextflow installation and downstream usage
- Documentation and license files - 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.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.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 [1.0.0]: https://github.com/MillironX/setup-nextflow/releases/tag/v1.0.0

View file

@ -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) {

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{ {
"name": "install-nextflow-action", "name": "install-nextflow-action",
"version": "1.0.1", "version": "1.2.0",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "install-nextflow-action", "name": "install-nextflow-action",
"version": "1.0.1", "version": "1.2.0",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.8.2", "@actions/core": "^1.8.2",

View file

@ -1,6 +1,6 @@
{ {
"name": "install-nextflow-action", "name": "install-nextflow-action",
"version": "1.1.0", "version": "1.2.0",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"scripts": { "scripts": {