Approve a Pending Deployment
A 4-step recipe with GitHub Actions. We can help you get access.
Recipe · 4 steps
Approve a Pending Deployment
with GitHub Actions · Continuous Integration Management
Works with AI assistants
Approve the pending deployment environments for a run and follow it to completion.
- Fetch the run to confirm it exists and is waiting before reviewing its pending deployments.
- List the deployment environments for the run that are waiting on protection rules. Branch to the end when nothing is pending.
- Approve the waiting environment for the run with the supplied reviewer comment. Returns 200 with the created deployments.
- Poll the run until it reaches the terminal completed status, looping back to itself while it is still in progress.
What you'll need to have ready
- accessToken: GitHub bearer token with deployment review access.
- owner: The account owner of the repository.
- repo: The name of the repository without the .git extension.
- runId: The workflow run that has pending deployments.
- environmentId: The environment id to approve.
- comment: A required reviewer comment recorded with the approval.
For your developer
Arazzo workflow github-actions:approve-pending-deployment, 4 operations: getWorkflowRun → getPendingDeployments → reviewPendingDeployments → getWorkflowRun. Specs on APIs.io.