From bb8efea4b5aa97d85ed86fb2eb0cc67db54ddb6a Mon Sep 17 00:00:00 2001 From: "Thomas A. Christensen II" <25492070+MillironX@users.noreply.github.com> Date: Wed, 4 Dec 2024 19:11:10 -0600 Subject: [PATCH] refactor: Switch action type to a composite action containing itself --- action.yml | 10 +++++++--- subaction/action.yml | 18 ++++++++++++++++++ 2 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 subaction/action.yml diff --git a/action.yml b/action.yml index f498457..7ea5868 100644 --- a/action.yml +++ b/action.yml @@ -9,10 +9,14 @@ inputs: all: description: "Whether to install every Nextflow release via the '-all' distribution." required: false - default: false + default: "false" runs: - using: "node20" - main: "dist/index.js" + using: "composite" + steps: + - uses: ./subaction + with: + version: ${{ inputs.version }} + all: ${{ inputs.all }} branding: icon: "shuffle" color: "green" diff --git a/subaction/action.yml b/subaction/action.yml new file mode 100644 index 0000000..334bea8 --- /dev/null +++ b/subaction/action.yml @@ -0,0 +1,18 @@ +name: "Setup Nextflow" +description: "Install Nextflow and add it to the PATH" +author: "nf-core" +inputs: + version: + description: "The Nextflow version to download (if necessary) and use. Example: 21.10.3" + required: false + default: "latest-stable" + all: + description: "Whether to install every Nextflow release via the '-all' distribution." + required: false + default: false +runs: + using: "node20" + main: "../dist/index.js" +branding: + icon: "shuffle" + color: "green"