Skip to content

Commit 9f5cd9d

Browse files
committed
GitHub Actions build: fix version detection
1 parent b295eb3 commit 9f5cd9d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
$versionSuffix = $segments.Length -eq 1 ? '' : $segments[1..$($segments.Length - 1)] -join '-'
103103
104104
[xml]$xml = Get-Content Directory.Build.props
105-
$configuredVersionPrefix = $xml.Project.PropertyGroup[0].JsonApiDotNetCoreVersionPrefix
105+
$configuredVersionPrefix = $xml.Project.PropertyGroup.JsonApiDotNetCoreVersionPrefix | Select-Object -First 1
106106
if ($configuredVersionPrefix -ne $versionPrefix) {
107107
Write-Error "Version prefix from git release tag '$versionPrefix' does not match version prefix '$configuredVersionPrefix' stored in Directory.Build.props."
108108
# To recover from this:

0 commit comments

Comments
 (0)