Trigger test after preview environments are created on PR

Hi!

So I’m generating preview environments for my github PR’s and would like to trigger a set of test on top of them as soon as they are deployed with a green status. This is something mentioned in the docs Preview Environments | Render Docs but dont see any material or already examples of it.

How can I programatically check on my preview environments deployment and trigger certain jobs on top of them once they are green?

Hi there,

There isn’t a way to do this via Render, but you could use the GitHub REST API to check the deployments associated with the PR branch that preview environment was created for: https://docs.github.com/en/rest/deployments/deployments?apiVersion=2022-11-28

Regards,

Keith
Render Support, UTC+10 :australia:

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.