Fix #1145 - set commit author and email

This commit is contained in:
Nate McMaster 2018-05-08 21:37:20 -07:00
parent b6ce8e18b2
commit 7bd10b41ba
No known key found for this signature in database
GPG Key ID: A778D9601BD78810
1 changed files with 10 additions and 1 deletions

View File

@ -171,7 +171,16 @@ function CommitUpdatedVersions(
$subject = "Updating external dependencies"
Invoke-Block { & git commit -m $subject } | Out-Null
$gitConfigArgs = @()
if ($env:GITHUB_USER) {
$gitConfigArgs += '-c',"user.name=$env:GITHUB_USER"
}
if ($env:GITHUB_EMAIL) {
$gitConfigArgs += '-c',"user.email=$env:GITHUB_EMAIL"
}
Invoke-Block { & git @gitConfigArgs commit -m $subject } | Out-Null
$body = "$subject`n`n"