Skip to content

Commit

Permalink
Run buildkite_pipeline_upload on branch HEAD (#1673)
Browse files Browse the repository at this point in the history
  • Loading branch information
mokagio authored Oct 30, 2024
2 parents 5aa207d + ee9b7d9 commit a89e590
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions fastlane/lanes/release.rb
Original file line number Diff line number Diff line change
Expand Up @@ -336,8 +336,14 @@ def trigger_buildkite_release_build(branch:, beta:)
if is_ci
buildkite_pipeline_upload(
pipeline_file: File.join(PROJECT_ROOT_FOLDER, '.buildkite', pipeline_file_name),
# Both keys and values need to be passed as strings
environment: environment.to_h { |k, v| [k.to_s, v.to_s] }
environment:
# Override the commit to make sure it runs on the latest state,
# not the commit that triggered the automation that eventaully called this.
#
# Useful during release automation builds that make additional commits to the release branch.
{ **environment, BUILDKITE_COMMIT: last_git_commit[:commit_hash] }
# Both keys and values need to be passed as strings
.to_h { |k, v| [k.to_s, v.to_s] }
)
else
build_url = buildkite_trigger_build(
Expand Down

0 comments on commit a89e590

Please sign in to comment.