add workflow dispatch to deploy the template#211
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 12631caa41
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Autofix Details
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Production deploy workflow missing concurrency control
- Added a workflow-level concurrency group in the production template dispatch workflow so runs are serialized and share the release lock for the same ref.
Or push these changes by commenting:
@cursor push b99ef15096
Preview (b99ef15096)
diff --git a/.github/workflows/build_prod_template.yml b/.github/workflows/build_prod_template.yml
--- a/.github/workflows/build_prod_template.yml
+++ b/.github/workflows/build_prod_template.yml
@@ -3,6 +3,8 @@
on:
workflow_dispatch
+concurrency: Release-${{ github.ref }}
+
permissions:
contents: readThere was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
|
|
||
| load_dotenv() | ||
|
|
||
| skip_cache = os.getenv("SKIP_CACHE", "false").lower() == "true" |
There was a problem hiding this comment.
can you just convert this to bool?
There was a problem hiding this comment.
preferring to check the value is actually true vs exists; otherwise it'll be any string, although I see the flip side that it's only set right now to "true". can change if really want it though.

adds a workflow dispatch to easily one click redeploy the template
Note
Medium Risk
Changes CI/CD workflows and how template IDs are exported, which can break pipeline integrations if outputs or env vars are miswired; no application runtime logic is affected.
Overview
Adds a new
workflow_dispatchGitHub Action (build_prod_template.yml) to manually rebuild the production E2B template, passingE2B_PROD_API_KEY,E2B_DOMAIN, and an optionalskip_cacheflag intotemplate/build_prod.py.Updates the reusable test template workflow to surface the built template ID from the build step, and changes
template/build_ci.pyto captureTemplate.build(...)output and writetemplate_idtoGITHUB_OUTPUTfor downstream jobs.Written by Cursor Bugbot for commit 5ab2843. This will update automatically on new commits. Configure here.