Update update-version.yml

This commit is contained in:
Igor Pečovnik
2022-01-12 12:37:52 +01:00
committed by GitHub
parent 4d765aee76
commit 0df2e9f89f

View File

@@ -81,6 +81,7 @@ jobs:
git symbolic-ref --short -q HEAD
if [[ "$(git symbolic-ref --short -q HEAD)" == nightly ]]; then
CURRENT_VERSION=$(cat VERSION)
CURRENT_VERSION="22.02.0"
NEW_VERSION="${CURRENT_VERSION%%-trunk}"
if [[ "$CURRENT_VERSION" == *trunk* ]]; then
VALUE=$(echo $NEW_VERSION | cut -d"." -f4 | sed 's/^0*//')