Skip to content

Instantly share code, notes, and snippets.

@Kami
Last active August 29, 2015 14:21
Show Gist options
  • Select an option

  • Save Kami/f5f3ff55509b84d115db to your computer and use it in GitHub Desktop.

Select an option

Save Kami/f5f3ff55509b84d115db to your computer and use it in GitHub Desktop.
---
chain:
-
name: "task1"
ref: "core.local"
params:
cmd: "echo 'foo'"
on-success: "task2"
-
name: "task2"
ref: "mypack.workflow2"
params:
result: "{{ task1.stdout }}" # here we pass parameter "result" to the mypack.mywfaction action which is a workflow
---
name: "workflow2"
description: "..."
runner_type: "action-chain"
entry_point: "workflow2.yaml"
enabled: true
parameters:
result:
type: "string"
description: "Result from a previous workflow"
required: True
---
chain:
-
name: "task1"
ref: "core.local"
params:
cmd: "echo {{result}}" # Here we echo the variable "result" which was passed to the workflow as a parameter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment