mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-11-21 17:36:04 +00:00
Merge pull request #3 from MillironX/fix/paginate
This commit is contained in:
commit
5fb6055651
4 changed files with 20 additions and 7 deletions
13
CHANGELOG.md
13
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
|
||||
|
|
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) {
|
||||
|
|
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -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",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "install-nextflow-action",
|
||||
"version": "1.1.0",
|
||||
"version": "1.2.0",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in a new issue