I am playing with Argo Events and Argo Workflows and am listeing for a github webhook using an eventSource and then publishing to my eventBus, and then consuming with a sensor that then triggers an argo workflow. What I want to do, is parameterise the name for the triggered workflow to include the person who pushed to the branch, and also the branch name and a short version of the commit ID:
E.g the name for the workflow triggered might look like “samgr-main-6381dd”
However, I can’t see anywhere in the docs where I can somehow construct it so that I can make 1 paramater which consists of these different pieces of data from the webhook:
Below is what I’ve got so far but i’ve tried using dataTemplate with “{{ body.pusher.name }} + {{body.branch.name}} + {{ body.commits.0.id }}” etc, but it just hates the format. Also i’m not sure how to truncate the full commit ID to only be 7 characters long.
below is my current setup – any help would be appreciated alot!!