From eb0b00d7d9db9c54edb9eacb9fbd3e35544480b0 Mon Sep 17 00:00:00 2001 From: Aleksandr Britvin Date: Tue, 24 Dec 2024 17:39:02 +0100 Subject: [PATCH] Refactor to new actions. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4302178..a6e5e5e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ FIRST_GOPATH:=$(firstword $(subst :, ,$(GOPATH))) # Build available information. GIT_HASH:=$(shell git log --format="%h" -n 1 2> /dev/null) -GIT_BRANCH:=$(shell git branch 2> /dev/null | grep '*' | cut -f2 -d' ') +GIT_BRANCH:=$(shell git rev-parse --abbrev-ref HEAD) APP_VERSION:="$(GIT_BRANCH)-$(GIT_HASH)" GOPKG:=github.com/launchrctl/launchr