Add logging for module release notes.

This commit is contained in:
Eyob Tefera
2020-08-24 21:21:30 +00:00
parent a2e080bf6c
commit 0c8e033c96

View File

@@ -41,11 +41,13 @@ lastCommitHash=$(
# Generate the changelog for this release
# using commit hashes and commit messages.
changeLog=$(mktemp)
changeLogFile=$(mktemp)
git log $lastCommitHash.. \
--pretty=oneline \
--abbrev-commit --no-decorate --no-color \
-- $module > $changeLog
-- $module > $changeLogFile
echo "Release notes:"
cat $changeLogFile
# Take everything after the last slash.
# This should be something like "v1.2.3".
@@ -126,6 +128,6 @@ cat $configFile
/bin/goreleaser release \
--config=$configFile \
--release-notes=$changeLogFile \
--rm-dist \
--skip-validate $remainingArgs \
--release-notes $changeLog
--skip-validate $remainingArgs