Parse `payload` (GitHub deployments)

Hey y’all. Is there any way to read payload from GitHub deployment event and inject the JSON into a environment variable? So I can read it using jq and extract extra information for my deployments

Didn’t use payload before, but Drone doesn’t support to inject system environments on-fly and automatically inherit with next steps.

So you have to save it to a file, such as payload.json, all rest pipeline steps will be able to read it directly.

Right, but how do I currently read it from the event?