use the tag name from the predefined variable for azure pipeline (#2041) (#2043)

Co-authored-by: blotus <sebastien@crowdsec.net>
This commit is contained in:
Manuel Sabban 2023-02-09 10:23:07 +01:00 committed by GitHub
parent a9a2186a76
commit 97ee59ef71
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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("-"))