From 064d40d846dced357cdcc6362ed2c3279cf76512 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Thu, 3 Feb 2022 15:30:48 +0100 Subject: [PATCH 1/2] Bump tower cli version to v0.5 --- CHANGELOG.md | 4 ++++ Dockerfile | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0a39fac..2f88cf7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,9 @@ # nf-core/tower-action: Changelog +## [[v2.3](https://github.com/nf-core/tower-action/releases/tag/v2.2)] - 2022-02-03 + +Bump Tower CLI to version 0.5 + ## [[v2.2](https://github.com/nf-core/tower-action/releases/tag/v2.2)] - 2022-01-12 Add option to pass nextflow config to Tower CLI. diff --git a/Dockerfile b/Dockerfile index 88252bf..f3e4912 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM alpine -ARG TOWER_CLI_VERSION="0.4" +ARG TOWER_CLI_VERSION="0.5" # Install Tower CLI RUN apk add --no-cache curl ca-certificates From ff581ba4e47737cc7682d4b9c02f75e67fc54d91 Mon Sep 17 00:00:00 2001 From: Phil Ewels Date: Thu, 3 Feb 2022 16:11:13 +0100 Subject: [PATCH 2/2] Update 'pipeline' default to include the GitHub URL prefix --- CHANGELOG.md | 15 +++++++++++++-- README.md | 6 +++--- action.yml | 2 +- 3 files changed, 17 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f88cf7..9bd427c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,8 +1,19 @@ # nf-core/tower-action: Changelog -## [[v2.3](https://github.com/nf-core/tower-action/releases/tag/v2.2)] - 2022-02-03 +## [[v3.0](https://github.com/nf-core/tower-action/releases/tag/v3.0)] -Bump Tower CLI to version 0.5 +### :warning: BREAKING CHANGE :warning + +The new version 0.5 of the Tower CLI only supports full URLs and no longer works with short-form +GitHub repository names (`user/repo`). The full GitHub repository URL now needs to be used +(`https://github.com/user/repo`). + +If you are setting `pipeline` in your workflow, please update it accordingly. +Note that the default value is the current repo, so in most cases this value +does not need to be specified. + +* Bump Tower CLI to version 0.5 +* Prefix the default value for `pipeline` with `https://github.com/` to match changed behaviour in the Tower CLI ## [[v2.2](https://github.com/nf-core/tower-action/releases/tag/v2.2)] - 2022-01-12 diff --git a/README.md b/README.md index a4aa493..e660c58 100644 --- a/README.md +++ b/README.md @@ -113,12 +113,12 @@ Default: `api.tower.nf` ### `pipeline` -**[Optional]** Pipeline repository name. +**[Optional]** Workspace pipeline name or full pipeline URL. -For example, `nf-core/rnaseq` or `https://github.com/nf-core/sarek`. +For example, `https://github.com/nf-core/sarek`. Can also be the name of a preconfigured pipeline in Nextflow Tower. -Default: The current GitHub repository (`github.repository`). +Default: The current GitHub repository (`https://github.com/${{github.repository}}`). ### `revision` diff --git a/action.yml b/action.yml index 4567419..a912c15 100644 --- a/action.yml +++ b/action.yml @@ -23,7 +23,7 @@ inputs: default: https://api.tower.nf pipeline: description: Pipeline repository - default: ${{ github.repository }} + default: https://github.com/${{ github.repository }} required: false revision: description: Pipeline revision (release / branch)