release: fix tag script

The tag script, when not run interactively, will fail without a provided commit
message (since it now uses annotated tags). For now, use a trivial message. In
the future, this could be extended to provide automated release notes.

PiperOrigin-RevId: 281112651
This commit is contained in:
Adin Scannell 2019-11-18 11:21:18 -08:00 committed by gVisor bot
parent 5107e6b6bd
commit 9601943685
1 changed files with 2 additions and 1 deletions

View File

@ -64,5 +64,6 @@ fi
# Tag the given commit (annotated, to record the committer). # Tag the given commit (annotated, to record the committer).
declare -r tag="release-${release}" declare -r tag="release-${release}"
(git tag -a "${tag}" "${commit}" && git push origin tag "${tag}") || \ (git tag -m "Release ${release}" -a "${tag}" "${commit}" && \
git push origin tag "${tag}") || \
(git tag -d "${tag}" && false) (git tag -d "${tag}" && false)