From 1283ce0c3a89267a6366e91c3f5a903de14416dc Mon Sep 17 00:00:00 2001 From: "luca.mazzoleni" Date: Wed, 18 Sep 2024 10:58:59 +0200 Subject: [PATCH] test --- .gitlab-ci.yml | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 538006c..274250f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -141,9 +141,7 @@ variables: Write-Output $env:MACH_VERS # calcolo versione formato numerico - $versionTxt = $env:MACH_VERS - echo $versionTxt - $versionMonthTxt = $versionTxt.Substring(3,1) + $versionMonthTxt = $env:MACH_VERS.Substring(3,1) # calcolo mese formato numerico $versionMonthNum = 999 if ( $versionMonthTxt -eq "a") { @@ -184,11 +182,11 @@ variables: $versionMonthNum = 12 } - $versionNum1 = env:MACH_VERS.Substring(0,1) - $versionNum2 = env:MACH_VERS.Substring(1,1) + $versionNum1 = $env:MACH_VERS.Substring(0,1) + $versionNum2 = $env:MACH_VERS.Substring(1,1) $versionNum3 = $versionMonthNum - $versionNum4 = env:MACH_VERS.Substring(3,3) - env:MACH_VERS_NUM = $versionNum1 + "." + $versionNum2 + "." + $versionNum3 + "." + $versionNum4 + $versionNum4 = $env:MACH_VERS.Substring(3,3) + $env:MACH_VERS_NUM = $versionNum1 + "." + $versionNum2 + "." + $versionNum3 + "." + $versionNum4 # display versione formato numerico Write-Output $env:MACH_VERS_NUM