From bc143316631e79034f52c2bde6f127fc9fb0d57b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 30 Oct 2024 09:52:51 +0200 Subject: [PATCH] deployerbot: fail early on `nix flake check` --- modules/services/deployerbot/default.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index f42328c..7fc1fcf 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -93,7 +93,9 @@ --targets ${deployDerivationsStr} -- \ --accept-flake-config || EXITCODE=1 - if [[ $EXITCODE == 0 ]]; then + if [[ $EXITCODE != 0 ]]; then + exit $EXITCODE + else git push origin main fi