Skip to content

add workflow dispatch to deploy the template#211

Merged
matthewlouisbrockman merged 5 commits intomainfrom
allow-ez-deploy-code-interpreter-template
Mar 5, 2026
Merged

add workflow dispatch to deploy the template#211
matthewlouisbrockman merged 5 commits intomainfrom
allow-ez-deploy-code-interpreter-template

Conversation

@matthewlouisbrockman
Copy link
Contributor

@matthewlouisbrockman matthewlouisbrockman commented Mar 5, 2026

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_dispatch GitHub Action (build_prod_template.yml) to manually rebuild the production E2B template, passing E2B_PROD_API_KEY, E2B_DOMAIN, and an optional skip_cache flag into template/build_prod.py.

Updates the reusable test template workflow to surface the built template ID from the build step, and changes template/build_ci.py to capture Template.build(...) output and write template_id to GITHUB_OUTPUT for downstream jobs.

Written by Cursor Bugbot for commit 5ab2843. This will update automatically on new commits. Configure here.

Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 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".

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Create PR

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: read
This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.

Copy link

@cursor cursor bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you just convert this to bool?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@matthewlouisbrockman matthewlouisbrockman merged commit c454262 into main Mar 5, 2026
14 checks passed
@matthewlouisbrockman matthewlouisbrockman deleted the allow-ez-deploy-code-interpreter-template branch March 5, 2026 18:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants