Last active
February 27, 2017 19:05
-
-
Save LindsayHill/cf72d9e386c9519c2cddfc62eecd3b09 to your computer and use it in GitHub Desktop.
Mistral Jinja example
This file contains 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
version: '2.0' | |
examples.mistral-jinja-env-var: | |
description: A basic workflow that illustrates how to get the workflow's env vars. | |
type: direct | |
output: | |
env: "{{ env() }}" | |
url: "{{ _.url }}" | |
tasks: | |
task1: | |
action: core.local | |
input: | |
cmd: "echo http://127.0.0.1:9101/executions/{{ env().st2_execution_id }}" | |
publish: | |
url: "{{ task('task1').result.stdout }}" | |
ctx: "{{ env()['__actions']['st2.action']['st2_context'] }}" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment