You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "Error: Failed to push and branch doesn't exist remotely"
237
+
exit 1
238
+
fi
239
+
fi
240
+
241
+
# Step 9: Create pull request
242
+
- name: Create pull request
243
+
env:
244
+
GH_TOKEN: ${{ secrets.github-token }}
245
+
run: |
246
+
# Check if PR already exists
247
+
if gh pr list --head ${{ steps.create-branch.outputs.branch-name }} --json number --jq 'length' | grep -q "1"; then
248
+
echo "PR for branch ${{ steps.create-branch.outputs.branch-name }} already exists"
249
+
else
250
+
gh pr create \
251
+
--title "🔄 Bump main version to ${{ steps.calc-version.outputs.next-version }}" \
252
+
--body "## Version Bump After Release
253
+
254
+
This PR bumps the main branch version from ${{ inputs.semver-version }} to ${{ steps.calc-version.outputs.next-version }} after cutting the release branch.
255
+
256
+
### Why this is needed:
257
+
- **Nightly builds**: Each nightly build needs to be one minor version ahead of the current release candidate
258
+
- **Version conflicts**: Prevents conflicts between nightlies and release candidates
259
+
- **Platform alignment**: Maintains version alignment between MetaMask mobile and extension
260
+
- **Update systems**: Ensures nightlies are accepted by app stores and browser update systems
261
+
262
+
### What changed:
263
+
- Version bumped from \`${{ inputs.semver-version }}\` to \`${{ steps.calc-version.outputs.next-version }}\`
264
+
- Platform: \`${{ inputs.platform }}\`
265
+
- Files updated by \`set-semvar-version.sh\` script
266
+
267
+
### Next steps:
268
+
This PR should be **manually reviewed and merged by the release manager** to maintain proper version flow.
269
+
270
+
### Related:
271
+
- Release version: ${{ inputs.semver-version }}
272
+
- Base branch for release: ${{ inputs.base-branch }}
273
+
- Platform: ${{ inputs.platform }}
274
+
275
+
---
276
+
*This PR was automatically created by the \`create-release-pr\` workflow.*" \
0 commit comments