Echo

The Echo action has no effects: it returns the options that are given. This action can be useful for testing or debugging, by temporarily replacing some other action with an Echo action having the same options. In this way, a developer can safely get feedback on what data is in play, without side effects.

Options

This action accepts any and all options, restricted only in that they must be valid JSON values (as with all results of task code).

Forcing an error

If the Echo action is given a "__error" option, it will raise that error when the action run is performed. Use this feature when it's useful to indicate an issue with a task run, without marking the entire task run as a failure (as would be the case when using an error object).

{% action "echo", __error: "Forcing an error!" %}

Examples

{% action "echo", foo: "bar", baz: "qux" %}
{% action "echo", "foo", "bar", "baz" %}
{% action "echo", "foo" %}
{% action "echo" %}
  {
    "foo": "bar",
    "baz": "qux"
  }
{% endaction %}

Last updated