-
Notifications
You must be signed in to change notification settings - Fork 1
/
action.yml
83 lines (78 loc) · 2.41 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
name: action-tower-launch
author: Phil Ewels
description: Launch a workflow using Nextflow Tower (https://tower.nf)
branding:
icon: "play"
color: "purple"
inputs:
access_token:
description: Nextflow Tower access token
required: true
compute_env:
description: Nextflow Tower compute env
required: false
workspace_id:
description: Nextflow Tower workspace ID
required: false
api_endpoint:
description: Tower API URL
required: false
default: https://api.tower.nf
pipeline:
description: Pipeline repository
default: https://github.com/${{ github.repository }}
required: false
revision:
description: Pipeline revision (release / branch)
required: false
workdir:
description: Nextflow work directory
required: false
parameters:
description: Pipeline parameters
required: false
default: ''
profiles:
description: Nextflow config profiles
required: false
run_name:
description: Nextflow Tower Run Name
required: false
nextflow_config:
description: Nextflow config options
required: false
pre_run_script:
description: Pre-run script before launch
required: false
wait:
description: Set GitHub action to wait for pipeline completion
default: false
required: false
outputs:
json:
description: JSON from tw launch with workflowID, workflowUrl, workspaceId, workspaceRef
workflowId:
description: Unique ID of the pipeline run in Nextflow Tower.
workflowUrl:
description: URL to pipeline run in Nextflow Tower.
workspaceId:
description: Unique ID of workspace in Nextflow Tower in which the pipeline is running.
workspaceRef:
description: Human readable format of workspace in Nextflow tower in format '[ organisation / workspace ]'.
runs:
using: "docker"
image: Dockerfile
env:
TOWER_WORKSPACE_ID: ${{ inputs.workspace_id }}
TOWER_API_ENDPOINT: ${{ inputs.api_endpoint }}
TOWER_ACCESS_TOKEN: ${{ inputs.access_token }}
TOWER_COMPUTE_ENV: ${{ inputs.compute_env }}
PIPELINE: ${{ inputs.pipeline }}
REVISION: ${{ inputs.revision }}
WORKDIR: ${{ inputs.workdir }}
PARAMETERS: ${{ inputs.parameters != '' && toJson(fromJson(inputs.parameters)) || '' }}
CONFIG_PROFILES: ${{ inputs.profiles }}
RUN_NAME: ${{ inputs.run_name }}
NEXTFLOW_CONFIG: ${{ inputs.nextflow_config }}
PRE_RUN_SCRIPT: ${{ inputs.pre_run_script }}
WAIT: ${{ inputs.wait }}