File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
buildbot_nix/buildbot_nix Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 29
29
from buildbot .schedulers .triggerable import Triggerable
30
30
from buildbot .secrets .providers .file import SecretInAFile
31
31
from buildbot .steps .trigger import Trigger
32
+ from buildbot .util .twisted import async_to_deferred
32
33
from buildbot .www .authz import Authz
33
34
from buildbot .www .authz .endpointmatchers import EndpointMatcherBase , Match
34
35
@@ -1145,6 +1146,7 @@ def nix_eval_config(
1145
1146
)
1146
1147
1147
1148
1149
+ @async_to_deferred
1148
1150
async def do_register_gcroot_if (
1149
1151
s : steps .BuildStep | Build , branch_config : models .BranchConfigDict
1150
1152
) -> bool :
@@ -1154,10 +1156,10 @@ async def do_register_gcroot_if(
1154
1156
out_path = s .getProperty ("out_path" )
1155
1157
1156
1158
return (
1157
- branch_config .do_register_gcroot (
1159
+ s .getProperty ("event" ) == "push"
1160
+ and branch_config .do_register_gcroot (
1158
1161
s .getProperty ("default_branch" ), s .getProperty ("branch" )
1159
1162
)
1160
- and s .getProperty ("event" ) == "push"
1161
1163
and not (
1162
1164
Path (str (gc_root )).exists ()
1163
1165
and Path (str (gc_root )).readlink () == Path (out_path )
You can’t perform that action at this time.
0 commit comments