Batch workflow commands
Tasks executed during batch workflows set some values using commands. To execute a command, a task should print a specifically formatted line to the standard output stream. Neuro Flow automatically scans this stream and detects commands in it.

set-output command

Sets the value of a task's output that can be later accessed by other tasks using the needs context.
Format:
::set-output name={name}::{value}
Example:
1
echo "::set-output name=output_name::value of the output_name"
Copied!

save-state command

Saves some value in the main task of a stateful action that can be later accessed by other post using the state context.
Format:
::save-state name={name}::{value}
Example:
1
echo "::save-state name=resource_id::id of some resource"
Copied!

stop-commands command

Temporarily disables the processing of commands until an ::{end_token}:: is found in the output.
Format:
::stop-commands::{end_token}
Example:
1
echo "::stop-commands::this will not appear in the file"
2
cat some-file.txt
3
echo "::this will not appear in the file::"
Copied!
Last modified 7mo ago