Expressions#
Expressions are a way to access and use values within your action graph. They allow you to reference different values depending on your configuration. Supported expressions include env
, inputs
, and secrets
. To find out about the order of precedence on how your configuration is loaded, check out the Configuration documentation.
Usage#
To use an expression, wrap it in ${{ ... }}
. For example:
${{ env.VARIABLE_NAME }}
${{ inputs.PARAMETER_NAME }}
${{ secrets.SECRET_KEY }}
Environment Variables (env
)#
Environment variables can be accessed using the env
keyword.
env:
HELLO: "world"
Input Parameters (inputs
)#
Input parameters are defined in your configuration and can be accessed using the inputs
keyword. These are useful for passing values into your action graph.
inputs:
USERNAME: "john_doe"
Secrets (secrets
)#
Secrets are sensitive values that you don't want to expose directly in your action graphs. These can be accessed using the secrets
keyword.
secrets:
SMTP_PASSWORD: "your_smtp_password"
Alternatively, you can use the Secret node to access secrets in your action graph. Both methods are equivalent, while the secret node is slightly easier to spot and manage.