From 25efbe65f3929d9cf198a173fa8893bb00a66473 Mon Sep 17 00:00:00 2001 From: Krisztian Gacsal Date: Wed, 8 Nov 2023 14:58:00 +0100 Subject: [PATCH] ci: fix release notes (#926) Run `git-cliff` with different options in CI and locally in order to generate the correct list of changes. --- Makefile | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 4789ef86a..50c4d6a46 100644 --- a/Makefile +++ b/Makefile @@ -454,5 +454,12 @@ $(DIST_DIR)/%.sha256sum: | $(DIST_DIR) .PHONY: generate-release-notes generate-release-notes: $(DIST_DIR)/CHANGELOG.md ## Generate Release Notes +GITCLIFF_OPTS := --strip all +ifeq ($(CI),true) + GITCLIFF_OPTS += -vv --latest --tag $(VERSION) +else + GITCLIFF_OPTS += --unreleased --bump +endif + $(DIST_DIR)/CHANGELOG.md: $(ROOT_DIR)/cliff.toml bin/git-cliff | $(DIST_DIR) - $(GITCLIFF_BIN) --config $(ROOT_DIR)/cliff.toml -vv --strip all --unreleased --tag $(VERSION) --output $@ + $(GITCLIFF_BIN) --config $(ROOT_DIR)/cliff.toml --output $@ $(GITCLIFF_OPTS)