Skip to content

Commit

Permalink
Output GitDescribeOutput for debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelmell committed Jan 14, 2025
1 parent 4352754 commit 571cbc0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Scripts/Prepare-Build.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ if ($GenericTemplate) {

try {
$CommitName = & git describe --tags --long --match "[0-9]*.[0-9]*"
$GitDescribeOutput = $CommitName
if (-Not $?) { throw }
$GitStatus = & git status --porcelain
if (-Not $?) { throw }
Expand Down Expand Up @@ -134,6 +135,7 @@ $CommitName | Out-File -Force $BCommit -ErrorAction Ignore
$ConfigurationName | Out-File -Force $BuildConfig -ErrorAction Ignore

Write-Output $(
"GitDescribeOutput: [$GitDescribeOutput]"
"build-config: [$($ConfigurationName)]"
"build-date: [$($Date)]"
"git-branch: [$($GitBranch)]"
Expand Down

0 comments on commit 571cbc0

Please sign in to comment.