UNPKG

@joshfarrant/shortcuts-js

Version:
23 lines 607 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); /** * @action Set Variable * @section Actions > Scripting > Variables * @icon Variable * * Sets the value of the specified variable to the input of this action. * * ```js * setVariable({ * variable: variable('My Variable'), * }); * ``` */ const setVariable = ({ variable, }) => ({ WFWorkflowActionIdentifier: 'is.workflow.actions.setvariable', WFWorkflowActionParameters: { WFVariableName: variable.Value.VariableName, }, }); exports.default = setVariable; //# sourceMappingURL=setVariable.js.map