ci: create gcroot only if result exists
This commit is contained in:
parent
3ccac0c30e
commit
7f9b2c6f45
@ -108,10 +108,12 @@ let
|
||||
name=str(new_step),
|
||||
command=[
|
||||
"${pkgs.writeDash "build-stepper.sh" ''
|
||||
set -efu
|
||||
set -xefu
|
||||
profile=${shell.escape profileRoot}/$build_name
|
||||
result=$("$build_script")
|
||||
if [ -n "$result" ]; then
|
||||
${pkgs.nix}/bin/nix-env -p "$profile" --set "$result"
|
||||
fi
|
||||
''}"
|
||||
],
|
||||
env={
|
||||
|
Loading…
Reference in New Issue
Block a user