fix doStepIf
This commit is contained in:
parent
08feafa5d4
commit
e90d7e151e
|
@ -459,6 +459,7 @@ def nix_build_config(
|
||||||
],
|
],
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
factory.addStep(
|
factory.addStep(
|
||||||
steps.ShellCommand(
|
steps.ShellCommand(
|
||||||
name="Register gcroot",
|
name="Register gcroot",
|
||||||
|
@ -472,8 +473,7 @@ def nix_build_config(
|
||||||
"-r",
|
"-r",
|
||||||
util.Property("out_path"),
|
util.Property("out_path"),
|
||||||
],
|
],
|
||||||
doStepIf=util.Interpolate("branch")
|
doStepIf=lambda s: s.getProperty("branch") == s.getProperty("github.repository.default_branch"),
|
||||||
== util.Interpolate("github.repository.default_branch"),
|
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
factory.addStep(
|
factory.addStep(
|
||||||
|
|
Loading…
Reference in a new issue