Skip to content
This repository has been archived by the owner on Oct 14, 2024. It is now read-only.

Commit

Permalink
ci: fix release notes (#926)
Browse files Browse the repository at this point in the history
Run `git-cliff` with different options in CI and locally in order to
generate the correct list of changes.
  • Loading branch information
chrisgacsal authored Nov 8, 2023
1 parent 7b0e473 commit 25efbe6
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit 25efbe6

Please sign in to comment.