diff --git a/scripts/common.psm1 b/scripts/common.psm1 index e99d9a0881..7a1fb5011f 100644 --- a/scripts/common.psm1 +++ b/scripts/common.psm1 @@ -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"