strip v prefix in tag name in azure-pipeline (#2048)
This commit is contained in:
parent
ebd709a4fe
commit
6c15da4ece
1 changed files with 4 additions and 0 deletions
|
@ -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("-"))
|
||||
|
|
Loading…
Reference in a new issue