diff --git a/.github/workflows/update-version.yml b/.github/workflows/update-version.yml index 6018de52..8542b068 100644 --- a/.github/workflows/update-version.yml +++ b/.github/workflows/update-version.yml @@ -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))