Add buildbot user info for tag step #6

Merged
maxweiss merged 1 commits from maxweiss/ipxe_scripts:tag_commands into master 2021-04-29 23:48:28 +02:00
Showing only changes of commit d0c5287736 - Show all commits

View File

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