Skip to content

Commit 3065555

Browse files
committed
Remove .RELEASE suffix before querying GitHub
This commit removes the `.RELEASE` suffix of the released version, if necessary. Such commit is not present on GitHub and the changelog generation process fails to find the milestone to use to generate the changelog. Closes gh-26796
1 parent 0ee8790 commit 3065555

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

ci/scripts/generate-changelog.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ set -e
44
CONFIG_DIR=git-repo/ci/config
55
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
66

7+
milestone=${version}
8+
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
9+
milestone=${version%.RELEASE}
10+
fi
11+
712
java -jar /github-changelog-generator.jar \
813
--spring.config.location=${CONFIG_DIR}/changelog-generator.yml \
9-
${version} generated-changelog/changelog.md
14+
${milestone} generated-changelog/changelog.md
1015

1116
echo ${version} > generated-changelog/version
1217
echo v${version} > generated-changelog/tag

0 commit comments

Comments
 (0)