Allow specifying commit message for auto-generated commits

This commit is contained in:
Nate McMaster 2018-06-03 20:40:21 -07:00 committed by GitHub
parent 168be585d6
commit c98b2d1089
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -163,14 +163,13 @@ function Set-GithubInfo(
function CommitUpdatedVersions(
[hashtable]$updatedVars,
[xml]$dependencies,
[string]$depsPath)
[string]$depsPath,
[string]$subject = 'Updating external dependencies')
{
$count = $updatedVars.Count
if ($count -gt 0) {
& git add build\dependencies.props
$subject = "Updating external dependencies"
$gitConfigArgs = @()
if ($env:GITHUB_USER) {
$gitConfigArgs += '-c',"user.name=$env:GITHUB_USER"