Co-authored-by: blotus <sebastien@crowdsec.net>
This commit is contained in:
parent
c08b37426e
commit
5f71037b40
|
@ -58,6 +58,10 @@ stages:
|
||||||
displayName: "Sign Crowdsec binaries + plugins"
|
displayName: "Sign Crowdsec binaries + plugins"
|
||||||
- pwsh: |
|
- pwsh: |
|
||||||
$build_version=$env:BUILD_SOURCEBRANCHNAME
|
$build_version=$env:BUILD_SOURCEBRANCHNAME
|
||||||
|
if ($build_version.StartsWith("v"))
|
||||||
|
{
|
||||||
|
$build_version = $build_version.Substring(1)
|
||||||
|
}
|
||||||
if ($build_version.Contains("-"))
|
if ($build_version.Contains("-"))
|
||||||
{
|
{
|
||||||
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
$build_version = $build_version.Substring(0, $build_version.IndexOf("-"))
|
||||||
|
|
Loading…
Reference in a new issue