We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543b011 commit 7902e3dCopy full SHA for 7902e3d
.github/workflows/build.yml
@@ -99,7 +99,7 @@ jobs:
99
# Get the version prefix/suffix from the git tag. For example: 'v1.0.0-preview1-final' => '1.0.0' and 'preview1-final'
100
$segments = $env:GITHUB_REF_NAME -split "-"
101
$versionPrefix = $segments[0].TrimStart('v')
102
- $versionSuffix = $segments[1..-1] -join "-"
+ $versionSuffix = $segments.Count -eq 1 ? '' : $segments[1..$($segments.Length-1)] -join '-'
103
104
[xml]$xml = Get-Content Directory.Build.props
105
$configuredVersionPrefix = $xml.Project.PropertyGroup[0].JsonApiDotNetCoreVersionPrefix
0 commit comments