How to get promote parameters

According UI design,when you do a promote operation,there is parameter option,also you can add more parameters.

My question is how to get this parameters in and use in drone.yml,is there any environment variables something like DRONE_PROMOTE_PARAMETER, e.g.

steps:
  - name: get parameters
    image: node:12-alpine
    commands:
      - echo ${DRONE_PROMOTE_PARAMETER}

trigger:
  event:
    - promote
    - rollback

@vkiller,

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.

Regards,
Harness support

@csgit So,according your guide,e.g.

POST /api/repos/{owner}/{repo}/builds/{build}/promote?target={target}&{mykey=myvalue}

I pass mykey and my myvalue,how to use this in drone.yml(Syntax | Drone)

like this?

kind: pipeline
type: docker
name: default

environment:
  mykey:$mykey      ----->?
  myvalue:$myvalue   ------>?

steps:
...

will you kindly show more detail specific