Skip to content

Commit ba5d205

Browse files
committed
GitHub Actions build: fix version detection
1 parent 76d82e1 commit ba5d205

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: .github/workflows/build.yml

+2-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,8 @@ jobs:
9292
$versionSuffix = $segments.Length -eq 1 ? '' : $segments[1..$($segments.Length - 1)] -join '-'
9393
9494
[xml]$xml = Get-Content Directory.Build.props
95-
$configuredVersionPrefix = $xml.Project.PropertyGroup[0].JsonApiDotNetCoreMongoDbVersionPrefix
95+
$configuredVersionPrefix = $xml.Project.PropertyGroup.JsonApiDotNetCoreMongoDbVersionPrefix | Select-Object -First 1
96+
9697
if ($configuredVersionPrefix -ne $versionPrefix) {
9798
Write-Error "Version prefix from git release tag '$versionPrefix' does not match version prefix '$configuredVersionPrefix' stored in Directory.Build.props."
9899
# To recover from this:

0 commit comments

Comments
 (0)