fix(nix/buildkite) don't fail if gated step has no branches

Change-Id: Id3365c18bc3904b42e8b129a513cff4480a2cb07
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7051
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
This commit is contained in:
Evgeny Zemtsov 2022-10-20 16:20:41 +02:00 committed by ezemtsov
parent bbf1e32737
commit b5b968e103

View file

@ -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})";
}