Skip to content

Fix release workflow submodule checkout conflict during bundle updates#517

Draft
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-release-job-failure
Draft

Fix release workflow submodule checkout conflict during bundle updates#517
Copilot wants to merge 2 commits into
mainfrom
copilot/fix-release-job-failure

Conversation

Copilot AI commented May 19, 2026

Copy link
Copy Markdown

The release job in Create Draft Release was failing while updating platform bundles because submodule branch checkout happened after bundle files were modified. This caused Git to abort with local-change overwrite protection.

  • Root cause

    • In Build and Update Bundles, yarn bundle:android/yarn bundle:ios modified tracked files, then the workflow executed git checkout main inside android/ios, which failed on dirty working trees.
  • Workflow change

    • Reordered submodule operations in .github/workflows/create_draft_release.yml:
      • Checkout/pull main for android and ios before running bundle generation.
      • Keep commit/push logic unchanged, but remove redundant post-build checkout/pull calls.
  • Behavioral impact

    • Bundle generation now runs on the intended submodule branch state, and subsequent git add/commit steps can proceed without checkout conflicts.
# before: bundle first, checkout later (fails on dirty tree)
yarn bundle:android
cd android
git checkout main

# after: checkout first, bundle later (no overwrite conflict)
cd android
git checkout main
git pull origin main
cd ..
yarn bundle:android

Copilot AI changed the title [WIP] Fix failing GitHub Actions job 'release' Fix release workflow submodule checkout conflict during bundle updates May 19, 2026
Copilot AI requested a review from sh-iv-am May 19, 2026 00:16
@sh-iv-am sh-iv-am requested a review from manideepk90 May 25, 2026 16:09
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.

3 participants