diff --git a/src/task/init.php b/src/task/init.php index 3602d68..2542930 100644 --- a/src/task/init.php +++ b/src/task/init.php @@ -35,8 +35,8 @@ */ function recordOperationLog($behavior, $filename) { + $date = '['.date('Y-m-d H:i:s').']'; $revisionMessage = implode(',', [ - '📝['.date('Y-m-d H:i:s').']', 'deployer:'.get('user'), 'behavior:'.$behavior, 'branch:'.get('branch'), @@ -45,7 +45,8 @@ function recordOperationLog($behavior, $filename) 'last_commit_date:'.get('last_commit_date'), 'last_commit_author:'.get('last_commit_author'), ]); - run('echo '.$revisionMessage.' >> '.get('deploy_path').'/'.$filename.'.log'); + + run('echo '.$date.$revisionMessage.' >> '.get('deploy_path').'/'.$filename.'.log'); writeln('📝 record '.$behavior.' log successfully ✔'); } diff --git a/src/task/notify.php b/src/task/notify.php index fb91395..1fd4300 100644 --- a/src/task/notify.php +++ b/src/task/notify.php @@ -32,7 +32,7 @@ function sendGroupNotify(string $content) task('success:notify', function () { $successMessage = implode("\n", [ - ' 🎈🎉🎊 Successfully released', + 'Successfully released 🚀🎉🎊 ', 'application: '.get('application'), 'announcer: '.get('user'), 'branch: '.get('branch'), @@ -44,7 +44,7 @@ function sendGroupNotify(string $content) task('failed:notify', function () { $failedMessage = implode("\n", [ - ' 🎈🎉🎊 Failed to release', + 'Failed to release 🚀👻⚡', 'application: '.get('application'), 'announcer: '.get('user'), 'branch: '.get('branch'),