Last active
August 29, 2015 14:21
-
-
Save Kami/f5f3ff55509b84d115db to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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