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),
|
name=str(new_step),
|
||||||
command=[
|
command=[
|
||||||
"${pkgs.writeDash "build-stepper.sh" ''
|
"${pkgs.writeDash "build-stepper.sh" ''
|
||||||
set -efu
|
set -xefu
|
||||||
profile=${shell.escape profileRoot}/$build_name
|
profile=${shell.escape profileRoot}/$build_name
|
||||||
result=$("$build_script")
|
result=$("$build_script")
|
||||||
|
if [ -n "$result" ]; then
|
||||||
${pkgs.nix}/bin/nix-env -p "$profile" --set "$result"
|
${pkgs.nix}/bin/nix-env -p "$profile" --set "$result"
|
||||||
|
fi
|
||||||
''}"
|
''}"
|
||||||
],
|
],
|
||||||
env={
|
env={
|
||||||
|
Loading…
Reference in New Issue
Block a user