Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Automated deployment workflow that takes PromptQL builds from staging to production when PRs merge.
Previously, builds lived in limbo after PR approval - someone had to manually run
ddn supergraph build apply
for each demo. Not exactly the kind of toil that sparks joy.Now the workflow handles the entire deployment pipeline automatically. The build detection logic searches merged PRs for comments containing
🚀 PromptQL Builds Complete
, then uses regex pattern matching to extract build versions:Each extracted build gets applied to its corresponding demo environment using the appropriate service account credentials. The workflow switches authentication contexts per demo and applies builds with proper error handling - failed deployments don't block other demos from going live.
Comments back to the merged PR with deployment status and threads Slack notifications with the original build announcements, maintaining conversation context across the entire build-to-deploy lifecycle.