diff --git a/src/git.php b/src/git.php index f3327d58..86c341ee 100644 --- a/src/git.php +++ b/src/git.php @@ -22,3 +22,8 @@ function git_branch(): string { return trim(shell_exec('git rev-parse --abbrev-ref HEAD')); } + +function git_tag(): string +{ + return trim(shell_exec('git describe --abbrev=0 --tags')); +}