Co-authored-by: blotus <sebastien@crowdsec.net>
This commit is contained in:
parent
a9a2186a76
commit
97ee59ef71
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ stages:
|
|||
displayName: "Sign Crowdsec binaries + plugins"
|
||||
|
||||
- pwsh: |
|
||||
$build_version=(git describe --tags (git rev-list --tags --max-count=1)).Substring(1)
|
||||
$build_version=$(Build.SourceBranchName)
|
||||
if ($build_version.Contains("-"))
|
||||
{
|
||||
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
||||
|
@ -69,7 +69,7 @@ stages:
|
|||
name: BuildMSI
|
||||
|
||||
- pwsh: |
|
||||
$build_version=(git describe --tags (git rev-list --tags --max-count=1)).Substring(1)
|
||||
$build_version=$(Build.SourceBranchName)
|
||||
if ($build_version.Contains("-"))
|
||||
{
|
||||
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
||||
|
|
Loading…
Reference in a new issue