From 3ce427193d75b528c86cca1515e0c0bc6943bb4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Wed, 28 Feb 2024 14:55:42 +0200 Subject: [PATCH] deployerbot: git push on success --- modules/services/deployerbot/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/services/deployerbot/default.nix b/modules/services/deployerbot/default.nix index 57184f0..c75e73b 100644 --- a/modules/services/deployerbot/default.nix +++ b/modules/services/deployerbot/default.nix @@ -83,7 +83,7 @@ --targets ${deployDerivationsStr} -- \ --accept-flake-config || EXITCODE=1 - if [[ $EXITCODE != 0 ]]; then + if [[ $EXITCODE == 0 ]]; then git push origin main fi