Skip to content

Commit 56dd74b

Browse files
committed
fix: Excluded latest commit from changelog query
Else changelog will contain current tag rather than the actually wanted previous release
1 parent e6e3fbe commit 56dd74b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.ci/git-changelog.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ fi
88
NEW_VERSION=$1
99

1010
# Get the last release tag (reverse sort by date, limited to one, return only refname, if pattern matches a hardening tag)
11-
LATEST_RELEASE=$(git for-each-ref --sort=-creatordate --count=1 --format="%(refname)" refs/tags/release/*)
11+
LATEST_RELEASE=$(git for-each-ref --sort=-creatordate --count=1 --format="%(refname)" --no-contains=HEAD refs/tags/release/*)
1212

1313
# Get extra short gitlog from laste release to current HEAD
1414
GIT_CHANGELOG=$(git log $LATEST_RELEASE..HEAD --format="- %s ([%h]($2/commits/%h))" | sort)

0 commit comments

Comments
 (0)