Skip to content

Commit

Permalink
Improve deploy:info task
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmedv committed Nov 21, 2021
1 parent 9c0ca30 commit 465aed4
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion recipe/deploy/info.php
Expand Up @@ -3,5 +3,11 @@

desc('Displays info about deployment');
task('deploy:info', function () {
info("deploying <fg=magenta;options=bold>{{target}}</>");
$target = get('target');
try {
$target = runLocally("git rev-parse --abbrev-ref $target");
} catch (\Throwable $exception) {
// noop
}
info("deploying <fg=magenta;options=bold>$target</>");
});

0 comments on commit 465aed4

Please sign in to comment.