Update update-version.yml

This commit is contained in:
Igor Pečovnik
2022-01-12 12:18:18 +01:00
committed by GitHub
parent 2809946ad7
commit 64c5bc30d1

View File

@@ -83,7 +83,7 @@ jobs:
CURRENT_VERSION=$(cat VERSION)
NEW_VERSION="${CURRENT_VERSION%%-trunk}"
if [[ "$CURRENT_VERSION" == *trunk* ]]; then
NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-3)"."$(printf "%04d\n" $(("${NEW_VERSION##*.}" + 1)))
NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-3)"."$(printf "%04d\n" $(("#${NEW_VERSION##*.}" + 1)))
else
echo "test"
#NEW_VERSION=$(echo "${CURRENT_VERSION}" | cut -d. -f1-2)"."$((${NEW_VERSION##*.} + 1))