From b11cd8f8f04bee82392be928b5dc1e9e1d602a36 Mon Sep 17 00:00:00 2001 From: Gary O'Neall Date: Thu, 20 May 2021 08:47:35 -0700 Subject: [PATCH] Fetch unannotated tag versions Resolves issue when release the license list XML where the version was not getting picked up in the release process --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 735ca3bfa..9fb54f0c2 100644 --- a/Makefile +++ b/Makefile @@ -8,7 +8,7 @@ LICENSE_DATA_REPO_NO_SCHEME = github.com/spdx/license-list-data.git LICENSE_DATA_REPO = https://$(LICENSE_DATA_REPO_NO_SCHEME) LICENSE_DATA_URL = https://$(LICENSE_LIST_GITHUB_TOKEN)@$(LICENSE_DATA_REPO_NO_SCHEME) LICENSE_OUTPUT_DIR = .tmp -GITVERSION = $(shell git describe --always || echo 'UNKNOWN') +GITVERSION = $(shell git describe --always --tags || echo 'UNKNOWN') # Remove leading 'v' or 'V' VERSION = $(subst V,,$(subst v,,$(GITVERSION))) RELEASE_DATE = $(shell date '+%Y-%m-%d')