Hi @tjc, thanks for this question. This isn’t super well documented, but similar to how one can use template values in notifications, you can actually pass jinja variables to deployments at action runtime. I’m thinking you could add a string parameter to a deployment and then use a run deployment action with {{ event }} as the parameter, which will resolve at runtime to give you the triggering event which you can use in code. Are you in the slack community? If so hit me up at Will Raphaelson and we can pair on this if its unclear.
Thanks @Will_Raphaelson - I got this working as you suggested. In case anyone else is looking to do something similar, the changes I made were as follows:
The flow now accepts an extra string parameter, i.e.