Update cloudbuild.sh

This commit is contained in:
Jeff Regan
2020-08-22 17:45:16 -07:00
committed by GitHub
parent faef5714bf
commit 40dc90b3b1

View File

@@ -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".