2020-09-26 03:20:44 +08:00
|
|
|
#!/bin/bash
|
|
|
|
set -e
|
|
|
|
|
2020-10-14 20:59:27 +08:00
|
|
|
CONFIG_DIR=git-repo/ci/config
|
2021-02-18 18:23:43 +08:00
|
|
|
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
|
2020-09-26 03:20:44 +08:00
|
|
|
|
|
|
|
java -jar /github-changelog-generator.jar \
|
2020-10-14 20:59:27 +08:00
|
|
|
--spring.config.location=${CONFIG_DIR}/changelog-generator.yml \
|
2020-09-26 03:26:56 +08:00
|
|
|
${version} generated-changelog/changelog.md
|
2020-09-26 03:20:44 +08:00
|
|
|
|
|
|
|
echo ${version} > generated-changelog/version
|
|
|
|
echo v${version} > generated-changelog/tag
|