Skip to content

Commit

Permalink
Only update last green commit for main branch (#2043)
Browse files Browse the repository at this point in the history
  • Loading branch information
meteorcloudy authored Sep 25, 2024
1 parent c00c815 commit 312ab25
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions buildkite/bazelci.py
Original file line number Diff line number Diff line change
Expand Up @@ -3427,19 +3427,20 @@ def print_bazel_publish_binaries_pipeline(task_configs, http_config, file_config
)
)

pipeline_steps.append({"wait": None, "continue_on_failure": False})
if current_branch_is_main_branch():
pipeline_steps.append({"wait": None, "continue_on_failure": False})

pipeline_steps.append(
create_step(
label="Update last green commit for Bazel",
commands=[
fetch_bazelcipy_command(),
PLATFORMS[DEFAULT_PLATFORM]["python"]
+ " bazelci.py try_update_last_green_commit",
],
platform=DEFAULT_PLATFORM,
pipeline_steps.append(
create_step(
label="Update last green commit for Bazel",
commands=[
fetch_bazelcipy_command(),
PLATFORMS[DEFAULT_PLATFORM]["python"]
+ " bazelci.py try_update_last_green_commit",
],
platform=DEFAULT_PLATFORM,
)
)
)


print_pipeline_steps(pipeline_steps)
Expand Down

0 comments on commit 312ab25

Please sign in to comment.