ci: add temp workflows for ephemeral build branch and nightly refactor#28150
ci: add temp workflows for ephemeral build branch and nightly refactor#28150
Conversation
|
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
There 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, have a team admin enable autofix in the Cursor dashboard.
|
✅ E2E Fixture Validation — Schema is up to date |
🔍 Smart E2E Test Selection
click to see 🤖 AI reasoning detailsE2E Test Selection:
None of these changes affect:
These are build/deployment pipeline improvements that have no bearing on what the app does or how Detox E2E tests execute. No E2E test tags are warranted. Performance Test Selection: |
|




Description
Adds temporary (non-destructive) versions of the TestFlight upload and nightly build workflows to test the ephemeral build branch pattern without modifying the production workflows.
New files:
create-build-branch.yml— Reusable workflow that creates an ephemeralbuild/<source>-<timestamp>branch from a source ref, avoiding version-bump pushes to protected branches likemainupload-to-testflight-temp.yml— Copy ofupload-to-testflight.ymlwith:workflow_callsupport, ephemeral branch viacreate-build-branch.yml, build number in the summarynightly-build-temp.yml— Copy ofnightly-build.ymlrefactored to: run on cron schedule instead of push-triggered, callupload-to-testflight-temp.ymlfor iOS exp/rc, usecreate-build-branch.yml+build.ymlfor Android exp/rcAlso updated:
CODEOWNERS— Added explicit@MetaMask/mobile-platformownership forcreate-build-branch.ymlThe originals (
upload-to-testflight.yml,nightly-build.yml) are unchanged.Changelog
CHANGELOG entry: null
Related issues
Fixes:
Manual testing steps
N/A — CI workflow changes only. Verify by triggering
upload-to-testflight-tempornightly-build-tempviaworkflow_dispatchand confirming the ephemeral branch is created, build succeeds, and branch is cleaned up.Screenshots/Recordings
Before
N/A
After
N/A
Pre-merge author checklist
Pre-merge reviewer checklist
Made with Cursor
Note
Medium Risk
Adds new scheduled and reusable GitHub Actions workflows that create/push/delete ephemeral branches and fetch Apple credentials from AWS; misconfiguration could affect CI runs or repo branches, but production workflows are unchanged.
Overview
Introduces a reusable
create-build-branch.ymlworkflow that creates and pushes an ephemeralbuild/<source>-<timestamp>branch for version-bump commits, avoiding direct pushes to protected refs.Adds temporary workflows to exercise this pattern:
upload-to-testflight-temp.ymlbuilds iOS from the ephemeral branch, uploads the IPA to TestFlight using Apple API keys fetched via AWS OIDC/Secrets Manager, and then deletes the build branch;nightly-build-temp.ymlruns on a daily cron to trigger iOS (exp then rc) and Android (exp then rc) builds using ephemeral branches and performs Android branch cleanup.Updates
CODEOWNERSto assign@MetaMask/mobile-platformownership forcreate-build-branch.yml.Written by Cursor Bugbot for commit b98371a. This will update automatically on new commits. Configure here.