Browse Source

strip v prefix in tag name in azure-pipeline (#2048)

blotus 2 years ago
parent
commit
6c15da4ece
1 changed files with 4 additions and 0 deletions
  1. 4 0
      azure-pipelines.yml

+ 4 - 0
azure-pipelines.yml

@@ -58,6 +58,10 @@ stages:
             displayName: "Sign Crowdsec binaries + plugins"
           - pwsh: |
               $build_version=$env:BUILD_SOURCEBRANCHNAME
+              if ($build_version.StartsWith("v"))
+              {
+                $build_version = $build_version.Substring(1)
+              }
               if ($build_version.Contains("-")) 
               {
                 $build_version = $build_version.Substring(0, $build_version.IndexOf("-"))