I would like to add a command that uses a substring of another variable.
$MY_VARIABLE is set to first/second. I want to only use everything after the / slash symbol, and either add this to a new variable, or use the result in another command.
How do I take a substring of that environment variable?
It depends on where in the YAML config you are wanting to do this. If it is a run step where you can use arbitrary shell commands, I expect you can do substring operations using awk.