How to use variable inside a string?


I have a variable called payload that I defined in the initiation of the workflow. I want to access it inside a string. How to do that?$payload.repoName/contents/.github/workflows/example.yaml → use “$payload.repoName” here.


Defined the variable here.

Hi @brian.kodikara, you would have to click on the fx icon and use a FEEL expression. Inside the FEEL expression you can access process variables like this:

="" + repoName + "/contents/.github/workflows/example.yaml" 
1 Like