Merge pull request #293 from natechicago/292-bugfix

292: Notification email reports SUCCESS even if deployment failed
This commit is contained in:
Andrés Montañez 2017-01-02 15:18:51 -03:00 committed by GitHub
commit 62c575f5b5

View file

@ -215,7 +215,7 @@ class DeployCommand extends AbstractCommand implements RequiresEnvironment
Console::output('Total time: <bold>' . $timeText . '</bold>.', 1, 2);
// Send Notifications
$this->sendNotification(self::$failedTasks > 0 ? false : true);
$this->sendNotification(self::$deployStatus === self::SUCCEDED);
// Unlock
if (file_exists(getcwd() . '/.mage/~working.lock')) {