Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 25 additions & 10 deletions .github/workflows/build-rc-auto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@
# in-progress run of this workflow for that branch is cancelled (same behavior as
# Bitrise “Rolling builds” / “Abort running builds” for one branch + one workflow).
#
# Builds are triggered via the Runway OTA/build pipeline (runway-ota-build-core.yml):
# - iOS runs first and performs the version bump.
# - Android runs after, skipping the version bump (already done by iOS).
# Version bump runs once (update-latest-build-version.yml), then iOS and Android
# builds are triggered in parallel via runway-ota-build-core.yml (skip_version_bump).
#
##############################################################################################
name: Auto RC builds
Expand Down Expand Up @@ -95,27 +94,43 @@ jobs:
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

update_rc_build_version:
name: Update RC build version
uses: ./.github/workflows/update-latest-build-version.yml
needs: validate-and-check-label
if: needs.validate-and-check-label.outputs.has-label == 'true'
permissions:
contents: write
id-token: write
with:
base-branch: ${{ needs.validate-and-check-label.outputs.branch-name }}
secrets:
PR_TOKEN: ${{ secrets.PR_TOKEN }}

trigger-ios-rc-build:
name: Trigger iOS RC Build
uses: ./.github/workflows/runway-ota-build-core.yml
needs: validate-and-check-label
needs:
- validate-and-check-label
- update_rc_build_version
if: needs.validate-and-check-label.outputs.has-label == 'true'
with:
platform: ios
source_branch: ${{ needs.validate-and-check-label.outputs.branch-name }}
source_branch: ${{ needs.update_rc_build_version.outputs.commit-hash }}
skip_version_bump: true
secrets: inherit

trigger-android-rc-build:
name: Trigger Android RC Build
uses: ./.github/workflows/runway-ota-build-core.yml
needs:
- validate-and-check-label
- trigger-ios-rc-build
- update_rc_build_version
if: needs.validate-and-check-label.outputs.has-label == 'true'
with:
platform: android
source_branch: ${{ needs.validate-and-check-label.outputs.branch-name }}
skip_version_bump: true # iOS step already bumped the version
source_branch: ${{ needs.update_rc_build_version.outputs.commit-hash }}
skip_version_bump: true
secrets: inherit

post-rc-build-comment:
Expand All @@ -125,7 +140,7 @@ jobs:
- validate-and-check-label
- trigger-ios-rc-build
- trigger-android-rc-build
if: always() && needs.trigger-android-rc-build.result == 'success' && needs.validate-and-check-label.outputs.pr-number != ''
if: always() && needs.trigger-ios-rc-build.result == 'success' && needs.trigger-android-rc-build.result == 'success' && needs.validate-and-check-label.outputs.pr-number != ''
permissions:
pull-requests: write
steps:
Expand Down Expand Up @@ -156,7 +171,7 @@ jobs:
- validate-and-check-label
- trigger-ios-rc-build
- trigger-android-rc-build
if: always() && needs.trigger-android-rc-build.result == 'success'
if: always() && needs.trigger-ios-rc-build.result == 'success' && needs.trigger-android-rc-build.result == 'success'
uses: ./.github/workflows/slack-rc-notification.yml
with:
source_branch: ${{ needs.validate-and-check-label.outputs.branch-name }}
Expand Down
Loading