Set Variables with YAML

YAML parameters for Set Variables

NameTypeDescription
action
Required
StringThe name of the action.
type
Required
StringThe type of the action. Should be set to SET_VARIABLES.
variables
Required
Variable[]The list of existing settable variables.
key
Required
StringThe name of the variable.
defaultsStringThe value of the variable.
encryptedBooleanEncrypted values will not be visible once saved. Can be used for things like passwords.
init_pathStringPath to the file with options.
commentStringThe custom comment that will be displayed upon passing arguments.

YAML example for Set Variables

actions:
- action: "Set Variables"
  type: "SET_VARIABLES"
  comment: "comment"
  variables:
  - key: "var1"
    type: "VAR"
  - key: "var2"
    type: "VAR"
    defaults: "option1\noption2"
  - key: "var3"
    type: "VAR"
    init_path: "/fileWithOptions"
  - key: "var4"
    type: "VAR"

Last modified on February 15, 2023

Get Started

Sign up for free and deploy your project in less than 10 minutes.