We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ec3c3ce + 86bbf4a commit 39cf88bCopy full SHA for 39cf88b
Makefile
@@ -452,7 +452,8 @@ staging-manifests:
452
ifneq (,$(findstring -,$(RELEASE_TAG)))
453
PRE_RELEASE=true
454
endif
455
-PREVIOUS_TAG ?= $(shell git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$$" | sort -V | grep -B1 $(RELEASE_TAG) | head -n 1 2>/dev/null)
+# List all tags, add the new tag to the list, sort and pick the previous one.
456
+PREVIOUS_TAG ?= $(shell (git tag -l | grep -E "^v[0-9]+\.[0-9]+\.[0-9]+$$"; echo "$(RELEASE_TAG)") | sort -V | grep -B1 "^$(RELEASE_TAG)$$" | grep -v "^$(RELEASE_TAG)$$" | head -n 1 2>/dev/null)
457
## set by Prow, ref name of the base branch, e.g., main
458
RELEASE_DIR := out
459
RELEASE_NOTES_DIR := releasenotes
0 commit comments