mirror of
https://github.com/MillironX/setup-nextflow.git
synced 2024-12-21 20:38:18 +00:00
refactor: Switch action type to a composite action containing itself
This commit is contained in:
parent
cf78f7d5e8
commit
fed3d93afa
2 changed files with 25 additions and 3 deletions
10
action.yml
10
action.yml
|
@ -9,10 +9,14 @@ inputs:
|
||||||
all:
|
all:
|
||||||
description: "Whether to install every Nextflow release via the '-all' distribution."
|
description: "Whether to install every Nextflow release via the '-all' distribution."
|
||||||
required: false
|
required: false
|
||||||
default: false
|
default: "false"
|
||||||
runs:
|
runs:
|
||||||
using: "node20"
|
using: "composite"
|
||||||
main: "dist/index.js"
|
steps:
|
||||||
|
- uses: ./subaction
|
||||||
|
with:
|
||||||
|
version: ${{ inputs.version }}
|
||||||
|
all: ${{ inputs.all }}
|
||||||
branding:
|
branding:
|
||||||
icon: "shuffle"
|
icon: "shuffle"
|
||||||
color: "green"
|
color: "green"
|
||||||
|
|
18
subaction/action.yml
Normal file
18
subaction/action.yml
Normal file
|
@ -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"
|
Loading…
Reference in a new issue