Fix #1145 - set commit author and email
This commit is contained in:
parent
b6ce8e18b2
commit
7bd10b41ba
|
|
@ -171,7 +171,16 @@ function CommitUpdatedVersions(
|
||||||
|
|
||||||
$subject = "Updating external dependencies"
|
$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"
|
$body = "$subject`n`n"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue