From 67eb873c02fefc51f97084f7980923713cd7d511 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicklas=20K=C3=B6rtge?= Date: Mon, 23 Sep 2024 13:21:47 +0200 Subject: [PATCH] fetch version from github MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Nicklas Körtge --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index f1df968fc..fc0fd6d89 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ # extract cbomkit version tag from pom.xml -VERSION := $(shell mvn help:evaluate -Dexpression=project.version | grep -e '^[^\[]') +VERSION := $(shell curl -s https://api.github.com/repos/IBM/cbomkit/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/') # build the backend build-backend: dev ./mvnw clean package