Skip to content

Commit 8ef7aae

Browse files
authored
Merge pull request #2138 from sbueringer/pr-update-rel-notes
🌱 Also add release notes to pre releases
2 parents 7de8e8b + 176bd0e commit 8ef7aae

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)