Skip to content

Commit a298114

Browse files
committed
Forward beta release parameter from Fastlane to Buildkite
1 parent ac614d5 commit a298114

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.buildkite/release-builds.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ common_params:
1515
steps:
1616

1717
- label: "🛠 WordPress Release Build (App Store Connect)"
18-
command: ".buildkite/commands/release-build-wordpress.sh"
18+
command: ".buildkite/commands/release-build-wordpress.sh $BETA_RELEASE"
1919
env: *common_env
2020
plugins: *common_plugins
2121
notify:

fastlane/Fastfile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -776,7 +776,7 @@ platform :ios do
776776
#
777777
#####################################################################################
778778
lane :trigger_beta_build do |options|
779-
trigger_buildkite_release_build(branch: options[:branch_to_build])
779+
trigger_buildkite_release_build(branch: options[:branch_to_build], beta: true)
780780
end
781781

782782
#####################################################################################
@@ -789,7 +789,7 @@ platform :ios do
789789
#
790790
#####################################################################################
791791
lane :trigger_release_build do |options|
792-
trigger_buildkite_release_build(branch: options[:branch_to_build])
792+
trigger_buildkite_release_build(branch: options[:branch_to_build], beta: false)
793793
end
794794

795795
########################################################################
@@ -968,11 +968,12 @@ def generate_installable_build_number
968968
end
969969
end
970970

971-
def trigger_buildkite_release_build(branch:)
971+
def trigger_buildkite_release_build(branch:, beta:)
972972
buildkite_trigger_build(
973973
buildkite_organization: 'automattic',
974974
buildkite_pipeline: 'wordpress-ios',
975975
branch: branch,
976+
environment: { BETA_RELEASE: beta },
976977
pipeline_file: 'release-builds.yml'
977978
)
978979
end

0 commit comments

Comments
 (0)