diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 4e079b6..ec96e3a 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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