Skip to content

Commit

Permalink
Pass both keys and values in buildkite_pipeline_upload as strings (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Oct 29, 2024
2 parents fdefee1 + 551297b commit 5379f76
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fastlane/lanes/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -328,15 +328,16 @@ def check_pods_references
end

def trigger_buildkite_release_build(branch:, beta:)
environment = { BETA_RELEASE: beta.to_s }
environment = { BETA_RELEASE: beta }
pipeline_file_name = 'release-build.yml'

# When in CI, upload the release build pipeline inline in the current pipeline.
# Otherwise, trigger a build via the Buildkite APIs.
if is_ci
buildkite_pipeline_upload(
pipeline_file: File.join(PROJECT_ROOT_FOLDER, '.buildkite', pipeline_file_name),
environment: environment
# Both keys and values need to be passed as strings
environment: environment.to_h { |k, v| [k.to_s, v.to_s] }
)
else
build_url = buildkite_trigger_build(
Expand Down

0 comments on commit 5379f76

Please sign in to comment.