Skip to content

Commit 176bd0e

Browse files
committed
Also add release notes to pre releases
1 parent 7de8e8b commit 176bd0e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

Makefile

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -572,11 +572,12 @@ release-alias-tag: ## Add the release alias tag to the last build tag
572572

573573
.PHONY: generate-release-notes
574574
generate-release-notes: $(RELEASE_NOTES_DIR) $(RELEASE_NOTES)
575+
# Reset the file
576+
echo -n > $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md
575577
if [ -n "${PRE_RELEASE}" ]; then \
576-
echo ":rotating_light: This is a RELEASE CANDIDATE. Use it only for testing purposes. If you find any bugs, file an [issue](https://github.com/kubernetes-sigs/cluster-api/issues/new)." > $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md; \
577-
else \
578-
"$(RELEASE_NOTES)" --from=$(PREVIOUS_TAG) --prefix-area-label=false --add-kubernetes-version-support=false > $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md; \
578+
echo -e ":rotating_light: This is a RELEASE CANDIDATE. Use it only for testing purposes. If you find any bugs, file an [issue](https://github.com/kubernetes-sigs/cluster-api/issues/new).\n" >> $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md; \
579579
fi
580+
"$(RELEASE_NOTES)" --from=$(PREVIOUS_TAG) --prefix-area-label=false --add-kubernetes-version-support=false >> $(RELEASE_NOTES_DIR)/$(RELEASE_TAG).md
580581

581582
.PHONY: promote-images
582583
promote-images: $(KPROMO)

0 commit comments

Comments
 (0)