Files
spring-graphql/ci/scripts/generate-changelog.sh
Brian Clozel b1b44946db Fix git tag name resource in CI pipeline
Prior to this commit, the git tag used for the GitHub release generation
was missing the "v" prefix.
2022-05-18 16:58:05 +02:00

12 lines
409 B
Bash
Executable File

#!/bin/bash
set -e
CONFIG_DIR=git-repo/ci/config
version=$( cat artifactory-repo/build-info.json | jq -r '.buildInfo.modules[0].id' | sed 's/.*:.*:\(.*\)/\1/' )
java -jar /github-changelog-generator.jar \
--spring.config.location=${CONFIG_DIR}/changelog-generator.yml \
${version} generated-changelog/changelog.md
echo ${version} > generated-changelog/version
echo v${version} > generated-changelog/tag