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