deployerbot: fail early on nix flake check

This commit is contained in:
Motiejus Jakštys 2024-10-30 09:52:51 +02:00
parent 6dc17e3829
commit bc14331663

View File

@ -93,7 +93,9 @@
--targets ${deployDerivationsStr} -- \ --targets ${deployDerivationsStr} -- \
--accept-flake-config || EXITCODE=1 --accept-flake-config || EXITCODE=1
if [[ $EXITCODE == 0 ]]; then if [[ $EXITCODE != 0 ]]; then
exit $EXITCODE
else
git push origin main git push origin main
fi fi