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