Apolo
HomeConsoleGitHub
  • Apolo concepts
  • CLI Reference
  • Examples/Use Cases
  • Flow CLI
  • Actions Reference
  • Apolo Extras CLI
  • Python SDK
  • Workflows
  • Workflow syntax
    • Expression syntax
    • Live workflow syntax
      • Live contexts
    • Batch workflow syntax
      • Batch contexts
      • Batch workflow commands
    • Project configuration syntax
    • Actions syntax
      • Actions contexts
  • CLI reference
  • Expression functions
  • Mixins
  • Modules
Powered by GitBook
On this page
  • set-output command
  • save-state command
  • stop-commands command

Was this helpful?

  1. Workflow syntax
  2. Batch workflow syntax

Batch workflow commands

PreviousBatch contextsNextProject configuration syntax

Last updated 10 months ago

Was this helpful?

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. Apolo 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 .

Format:

::set-output name={name}::{value}

Example:

echo "::set-output name=output_name::value of the output_name"

save-state command

Saves some value in the main task of a that can be later accessed by other post using the .

Format:

::save-state name={name}::{value}

Example:

echo "::save-state name=resource_id::id of some resource"

stop-commands command

Temporarily disables the processing of commands until an ::{end_token}:: is found in the output.

Format:

::stop-commands::{end_token}

Example:

echo "::stop-commands::this will not appear in the file"
cat some-file.txt
echo "::this will not appear in the file::"
stateful action
state context
needs context