Skip to content

Commit

Permalink
Merge pull request #1637 from CecileRobertMichon/fix-release-notes-br…
Browse files Browse the repository at this point in the history
…anch

Add branch to release notes command in Makefile
  • Loading branch information
k8s-ci-robot authored Aug 20, 2021
2 parents 57dff6b + 24289d2 commit ceed797
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -410,6 +410,9 @@ PREVIOUS_TAG ?= $(shell git describe --abbrev=0 $(RELEASE_TAG)^ 2>/dev/null)
RELEASE_DIR ?= out
GIT_REPO_NAME ?= cluster-api-provider-azure
GIT_ORG_NAME ?= kubernetes-sigs
FULL_VERSION := $(RELEASE_TAG:v%=%)
MINOR_VERSION := $(shell v='$(FULL_VERSION)'; echo "$${v%.*}")
RELEASE_BRANCH ?= release-$(MINOR_VERSION)

$(RELEASE_DIR):
mkdir -p $(RELEASE_DIR)/
Expand Down Expand Up @@ -453,7 +456,7 @@ release-binary: $(RELEASE_DIR)

.PHONY: release-notes
release-notes: $(RELEASE_NOTES)
$(RELEASE_NOTES) --org $(GIT_ORG_NAME) --repo $(GIT_REPO_NAME) --start-rev $(PREVIOUS_TAG) --end-rev $(RELEASE_TAG) --output release-notes-$(RELEASE_TAG).md
$(RELEASE_NOTES) --org $(GIT_ORG_NAME) --repo $(GIT_REPO_NAME) --branch $(RELEASE_BRANCH) --start-rev $(PREVIOUS_TAG) --end-rev $(RELEASE_TAG) --output release-notes-$(RELEASE_TAG).md

## --------------------------------------
## Development
Expand Down

0 comments on commit ceed797

Please sign in to comment.