vers numb variabile

This commit is contained in:
Samuele Locatelli
2021-03-29 12:51:57 +02:00
parent 6abcd8a51c
commit 94b0447c87
+2 -1
View File
@@ -40,7 +40,8 @@ variables:
# helper x fix version number
.version-fix: &version-fix
- |
echo "Set vers: $env:VERS_NUMBER"
$newRel = $VERS_NUMBER+"."+(get-date format yyMM)+"."+$CI_PIPELINE_IID
echo "New Rel: $newRel | Set vers: $env:VERS_NUMBER"
$contenuto = Get-Content -path 'VersGen\GPW.cs' -Raw
$newContenuto = $contenuto -replace '0.0.0.0', $env:VERS_NUMBER
$newContenuto | Set-Content -Path 'VersGen\GPW.cs'