Skip to content

Commit 612169e

Browse files
committed
fix: update CommitMessage after $key prepared
1 parent 8250b3a commit 612169e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

bin/auto-pr.ps1

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,14 +188,13 @@ hub diff --name-only | ForEach-Object {
188188
}
189189

190190
$app = ([System.IO.Path]::GetFileNameWithoutExtension($manifest))
191-
$CommitMessage = $CommitMessageFormat -replace '<app>',$app -replace '<version>',$version
192191
$json = parse_json $manifest
193192
if (!$json.version) {
194193
error "Invalid manifest: $manifest ..."
195194
return
196195
}
197196
$version = $json.version
198-
197+
$CommitMessage = $CommitMessageFormat -replace '<app>',$app -replace '<version>',$version
199198
if ($Push) {
200199
Write-Host "Creating update $app ($version) ..." -ForegroundColor DarkCyan
201200
execute "hub add $manifest"

0 commit comments

Comments
 (0)