From 317d36c9dd1a6af58db85f4d8545fbe577134be6 Mon Sep 17 00:00:00 2001 From: Thomas Roehl Date: Thu, 13 Oct 2022 16:46:54 +0200 Subject: [PATCH] Try fixing DEB package --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 50b92fc..2f49354 100644 --- a/Makefile +++ b/Makefile @@ -112,7 +112,9 @@ DEB: scripts/cc-metric-collector.deb.control $(APP) #@mkdir --parents --verbose $$DEBIANDIR @CONTROLFILE="$${BASEDIR}/scripts/cc-metric-collector.deb.control" @COMMITISH="HEAD" + @git describe --tags --abbrev=0 $${COMMITISH} @VERS=$$(git describe --tags --abbrev=0 $${COMMITISH}) + @if [ -z "$$VERS" ]; then VERS=${GITHUB_REF_NAME}; fi @VERS=$${VERS#v} @VERS=$$(echo $$VERS | sed -e s+'-'+'_'+g) @ARCH=$$(uname -m)