Skip to content

Commit 8891ee5

Browse files
author
Alan Christie
committed
fix: Add from-project support
1 parent 04f57d2 commit 8891ee5

File tree

3 files changed

+17
-42
lines changed

3 files changed

+17
-42
lines changed

tests/workflow-definitions/replicate-using-undeclared-input.yaml

Lines changed: 0 additions & 42 deletions
This file was deleted.

tests/workflow-definitions/simple-python-split-combine.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ steps:
2020
- variable: inputFile
2121
from-workflow:
2222
variable: candidateMolecules
23+
- variable: inputFile
24+
from-project:
2325

2426
- name: parallel
2527
description: Add some params

workflow/workflow-schema.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,20 @@ definitions:
136136
- variable
137137
- to-project
138138

139+
# A Step variable
140+
# (whose value (a file) is to be copied from project directory)
141+
step-variable-from-project:
142+
type: object
143+
additionalProperties: false
144+
properties:
145+
variable:
146+
$ref: '#/definitions/variable-name'
147+
from-project:
148+
type: 'null'
149+
required:
150+
- variable
151+
- from-project
152+
139153
# A step specification variable
140154
# (there must be at least one if a variables block is defined).
141155
# Typical variable syntax based on Python's definition of a variable
@@ -202,6 +216,7 @@ definitions:
202216
- $ref: "#/definitions/step-variable-from-step"
203217
- $ref: "#/definitions/step-variable-from-workflow"
204218
- $ref: "#/definitions/step-variable-from-predefined"
219+
- $ref: "#/definitions/step-variable-from-project"
205220
- $ref: "#/definitions/step-variable-to-project"
206221
minItems: 1
207222
required:

0 commit comments

Comments
 (0)