How to read promote parameters

Hi everyone, I see we can pass the custom parameters in promote event. following this docs drone build promote | Drone

But I can not find the docs how to read these params when execute pipeline.

@buicongtan1997,

These parameters will be available to your pipeline steps as environment variables as mentioned in below doc:
https://docs.drone.io/api/builds/build_promote/

You can use the environment variable as below:
https://docs.drone.io/pipeline/environment/syntax/

Let us know if this helps or if you have any questions.