about summary refs log tree commit diff
path: root/nix/buildkite
diff options
context:
space:
mode:
authorEvgeny Zemtsov <eze@resoptima.com>2022-10-20T14·20+0200
committerezemtsov <eugene.zemtsov@gmail.com>2022-10-20T15·27+0000
commitb5b968e1039be23846b6ebd64d1e762ef203e475 (patch)
tree4f6b087bfd35f4f61d027643fd2c083140b53a53 /nix/buildkite
parentbbf1e3273751a294bdff7329fae022bce4963b66 (diff)
fix(nix/buildkite) don't fail if gated step has no branches r/5169
Change-Id: Id3365c18bc3904b42e8b129a513cff4480a2cb07
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7051
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
Diffstat (limited to 'nix/buildkite')
-rw-r--r--nix/buildkite/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nix/buildkite/default.nix b/nix/buildkite/default.nix
index f0f760b3ceb1..ccd98e532c75 100644
--- a/nix/buildkite/default.nix
+++ b/nix/buildkite/default.nix
@@ -308,8 +308,8 @@ rec {
 
     steps = [
       {
-        inherit (step) branches;
         inherit prompt;
+        branches = step.branches or [ ];
         block = ":radio_button: Run ${label}? (from ${parent.env.READTREE_TARGET})";
       }