Skip to content

Commit 6d935c4

Browse files
authored
Restore mobile build bump PR automation (selfxyz#1186)
* Remove mobile build bump preview steps * fix pr logic * bump version
1 parent 25634e0 commit 6d935c4

File tree

2 files changed

+34
-3
lines changed

2 files changed

+34
-3
lines changed

.github/workflows/mobile-deploy.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -590,6 +590,18 @@ jobs:
590590
with:
591591
app_path: ${{ env.APP_PATH }}
592592

593+
- name: Open PR for iOS build number bump
594+
if: ${{ !env.ACT && (github.event_name != 'pull_request' || github.event.pull_request.merged == true) && success() }}
595+
uses: peter-evans/create-pull-request@v6
596+
with:
597+
title: "chore: bump iOS build for ${{ env.VERSION }}"
598+
body: "Automated bump of iOS build number by CI"
599+
commit-message: "chore: incrementing ios build number for version ${{ env.VERSION }} [github action]"
600+
branch: ci/bump-ios-build-${{ github.run_id }}
601+
base: staging
602+
add-paths: |
603+
app/version.json
604+
593605
- name: Monitor cache usage
594606
if: always()
595607
run: |
@@ -946,6 +958,18 @@ jobs:
946958
with:
947959
app_path: ${{ env.APP_PATH }}
948960

961+
- name: Open PR for Android build number bump
962+
if: ${{ !env.ACT && (github.event_name != 'pull_request' || github.event.pull_request.merged == true) && success() }}
963+
uses: peter-evans/create-pull-request@v6
964+
with:
965+
title: "chore: bump Android build for ${{ env.VERSION }}"
966+
body: "Automated bump of Android build number by CI"
967+
commit-message: "chore: incrementing android build version for version ${{ env.VERSION }} [github action]"
968+
branch: ci/bump-android-build-${{ github.run_id }}
969+
base: staging
970+
add-paths: |
971+
app/version.json
972+
949973
- name: Monitor cache usage
950974
if: always()
951975
run: |
@@ -1053,6 +1077,13 @@ jobs:
10531077
exit 0
10541078
fi
10551079
1080+
if [ "$GITHUB_EVENT_NAME" = "pull_request" ]; then
1081+
echo "🧪 Pull request event detected - running in dry-run mode."
1082+
echo "The following changes would be included in the version bump PR:"
1083+
git --no-pager diff --cached
1084+
exit 0
1085+
fi
1086+
10561087
# Commit the changes on a temporary local branch
10571088
git checkout -b temp-for-version-commit
10581089
git commit -m "chore: update version files after deployment [skip ci]"

app/version.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"ios": {
3-
"build": 176,
3+
"build": 177,
44
"lastDeployed": "2025-09-30T16:35:10Z"
55
},
66
"android": {
7-
"build": 106,
8-
"lastDeployed": "2025-09-30T16:59:07Z"
7+
"build": 107,
8+
"lastDeployed": "2025-10-01T08:00:07Z"
99
}
1010
}

0 commit comments

Comments
 (0)