Skip to content

Commit

Permalink
Remove .RELEASE suffix before querying GitHub
Browse files Browse the repository at this point in the history
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 spring-projectsgh-26796
  • Loading branch information
snicoll committed May 11, 2021
1 parent 0ee8790 commit 3065555
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ci/scripts/generate-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,14 @@ set -e
CONFIG_DIR=git-repo/ci/config
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )

milestone=${version}
if [[ $RELEASE_TYPE = "RELEASE" ]]; then
milestone=${version%.RELEASE}
fi

java -jar /github-changelog-generator.jar \
--spring.config.location=${CONFIG_DIR}/changelog-generator.yml \
${version} generated-changelog/changelog.md
${milestone} generated-changelog/changelog.md

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

0 comments on commit 3065555

Please sign in to comment.