mirror of
https://github.com/kubernetes-sigs/kustomize.git
synced 2026-06-11 17:12:51 +00:00
Update cloudbuild.sh
This commit is contained in:
@@ -35,10 +35,14 @@ module=${fullTag%/*}
|
|||||||
echo "module=$module"
|
echo "module=$module"
|
||||||
|
|
||||||
# Obtain most recent commit hash associated with the module.
|
# Obtain most recent commit hash associated with the module.
|
||||||
lastCommitHash=$(git log --tags=$module -1 --oneline --no-walk --pretty=format:%h)
|
lastCommitHash=$(
|
||||||
|
git log --tags=$module -1 --oneline --no-walk --pretty=format:%h)
|
||||||
|
|
||||||
# Generate the changelog for this release using commit hashes and commit messages.
|
# Generate the changelog for this release
|
||||||
cl=$(git log $lastCommitHash.. --pretty=oneline --abbrev-commit --no-decorate --no-color -- $module)
|
# using commit hashes and commit messages.
|
||||||
|
cl=$(
|
||||||
|
git log $lastCommitHash.. --pretty=oneline \
|
||||||
|
--abbrev-commit --no-decorate --no-color -- $module)
|
||||||
|
|
||||||
# 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".
|
||||||
|
|||||||
Reference in New Issue
Block a user