This commit is contained in:
luca.mazzoleni
2024-09-18 12:38:03 +02:00
parent 16da325b2a
commit 5eb6a5cde3
+8 -1
View File
@@ -20,6 +20,7 @@ variables:
TEST_PATH: ''
URL_VERSIONS_LOG: "https://liman.egalware.com/ELM.API/api/release/save"
MACH_VERS_NUM: '0.0.0.0'
CRITICAL_STRING: "critical"
#Note compilazione LUA:
@@ -196,6 +197,12 @@ variables:
echo "-----------------------"
echo " Invio versione a log online"
echo "-----------------------"
$isCriticalUpdate = false
if ( $CI_COMMIT_MESSAGE | Select-String -Pattern $env:CRITICAL_STRING) {
$isCriticalUpdate = true
}
echo "Critical update"
echo $isCriticalUpdate
$body =
@{
codInst = "EgalWare"
@@ -206,7 +213,7 @@ variables:
versNum = $env:MACH_VERS_NUM
versText = $env:MACH_VERS
releaseDate = (Get-Date).toString("yyyy-MM-ddTHH:mm:ss.fffZ")
relTags = ""
relTags = "CRITICAL", $isCriticalUpdate
}
$jsonBody = ConvertTo-Json -InputObject $body
echo $jsonBody