Add buildbot user info for tag step

This commit is contained in:
Max Weiss 2021-04-29 14:46:51 -07:00
parent 4f98a35a4e
commit d0c5287736
Signed by untrusted user: maxweiss
GPG Key ID: C2D8443BA1D372DB
1 changed files with 5 additions and 0 deletions

View File

@ -165,12 +165,17 @@ function tag_head_and_push() {
cd "$git_repo_dir"
git config user.name "BuildBot"
git config user.email "buildbot@bitmessage.io"
git tag -n | grep $(git rev-parse HEAD)
if [ $? -eq 0 ]; then
>&2 echo 'HEAD tag already exists, bailing out...'
return 1
fi
git tag -a "g_$(git rev-parse HEAD)" HEAD -m "BuildBot: tag commit for release $(git rev-parse HEAD)" || return 2
git push --tags "$remote" "$branch"
if [ $? -ne 0 ]; then