From e90d7e151ea81454439729be42708bc4726765ef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Thalheim?= Date: Mon, 9 Oct 2023 17:13:46 +0200 Subject: [PATCH] fix doStepIf --- buildbot_nix/buildbot_nix.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildbot_nix/buildbot_nix.py b/buildbot_nix/buildbot_nix.py index c8ceae4..aa1b47f 100644 --- a/buildbot_nix/buildbot_nix.py +++ b/buildbot_nix/buildbot_nix.py @@ -459,6 +459,7 @@ def nix_build_config( ], ) ) + factory.addStep( steps.ShellCommand( name="Register gcroot", @@ -472,8 +473,7 @@ def nix_build_config( "-r", util.Property("out_path"), ], - doStepIf=util.Interpolate("branch") - == util.Interpolate("github.repository.default_branch"), + doStepIf=lambda s: s.getProperty("branch") == s.getProperty("github.repository.default_branch"), ) ) factory.addStep(