Skip to content

Commit

Permalink
Improved latest tag detecting command
Browse files Browse the repository at this point in the history
  • Loading branch information
jiakuan committed Dec 9, 2024
1 parent 03a8082 commit 5b6cfb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
LATEST_TAG ?= `git tag|sort -t. -k 1,1n -k 2,2n -k 3,3n -k 4,4n | tail -1`
LATEST_TAG ?= `git tag | grep -E '^v?[0-9]+(\.[0-9]+)*(-[a-zA-Z]+[0-9]*)?$' | sort -V | tail -1`
PROJECT_DIR := $(shell dirname $(realpath $(lastword $(MAKEFILE_LIST))))
BUILD_DIR := ${PROJECT_DIR}/build

Expand Down

0 comments on commit 5b6cfb1

Please sign in to comment.