mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-07-18 02:01:29 +00:00
Add logging for module release notes.
This commit is contained in:
@@ -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
|
|
||||||
|
|||||||
Reference in New Issue
Block a user