TTPForge Actions: inline
December 5, 2023 ยท View on GitHub
By default, the inline action runs the provided shell command in a new
instance of the bash shell:
You can experiment with the above TTP by installing the examples TTP
repository (skip this if ttpforge list repos shows that the examples repo is
already installed):
ttpforge install repo https://github.com/facebookincubator/TTPForge --name examples
and then running the below command:
ttpforge run examples//actions/inline/basic.yaml
Fields
You can specify the following YAML fields for the inline: action:
inline:(type:string) the command that you want to run.executor:(type:string) the program that should run your command. The program you specify will be launched and your command will be sent to its STDIN. Default:bash.
Notes
Key things to remember about inline: actions:
- By default,
inlinepasses-o errexitto thebashexecutor, meaning that the failure of any single command will terminate the step and start cleanup. This prevents silent failures and makes TTPs more reliable. - Each separate
inlineaction instance runs in its own shell. Sharing shell variables between differentinlinesteps is not supported yet.