@@ -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]"
0 commit comments