File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change 43
43
}
44
44
45
45
46
- def run (title , command ):
46
+ def run (title , command , check = True ):
47
47
print ("::group::" + title , flush = True )
48
48
print (command , flush = True )
49
49
start = time .monotonic ()
50
50
try :
51
- subprocess .run (shlex .split (command ), stderr = subprocess .STDOUT , check = True )
51
+ subprocess .run (shlex .split (command ), stderr = subprocess .STDOUT , check = check )
52
52
finally :
53
53
print ("Duration:" , time .monotonic () - start , flush = True )
54
54
print ("::endgroup::" , flush = True )
@@ -108,7 +108,11 @@ def run(title, command):
108
108
submodules = " " .join (submodules )
109
109
# This line will fail because the submodule's need different commits than the tip of the branch. We
110
110
# fix it later.
111
- run ("Init the submodules we'll need" , f"git submodule update --init -N --depth 1 { submodules } " )
111
+ run (
112
+ "Init the submodules we'll need" ,
113
+ f"git submodule update --init -N --depth 1 { submodules } " ,
114
+ check = False ,
115
+ )
112
116
113
117
run (
114
118
"Fetch the submodule sha" ,
You can’t perform that action at this time.
0 commit comments