I want to add a custom when condition, please help me

Because of the needs of certain scenarios, I want to add a custom when condition to the pipeline of the exec runner. I am familiar with golang, but I am not familiar with drone. I want to know how I should do it. Please help me, thank you very much.

If you want to custom condition to trigger pipeline, maybe you can use promote here is doc https://docs.drone.io/promote/

@lizheming Thanks, my requirement is that I have multiple runners deployed, but I want to execute the build only on the specified runner according to different conditions

It’s so late, but I hope this will help you.