diff --git a/.github/workflows/bump-and-release.yml b/.github/workflows/bump-and-release.yml index 37e167e..8f55e23 100644 --- a/.github/workflows/bump-and-release.yml +++ b/.github/workflows/bump-and-release.yml @@ -116,7 +116,7 @@ jobs: elif [ "$TARGET_BRANCH" == "development" ]; then if [[ "$CURRENT_VERSION" == *"-dev."* && "$SAME_TAG" == "true" ]]; then NEW_VERSION="$MAJOR.$((MINOR + 1)).0-dev.1" - else if [[ "$CURRENT_VERSION" == *"-dev."* || "$SOURCE_BRANCH" == "main"]]; then + elif [[ "$CURRENT_VERSION" == *"-dev."* || "$SOURCE_BRANCH" == "main" ]]; then LAST_NUM=${CURRENT_VERSION##*.} NEXT_NUM=$((LAST_NUM + 1)) NEW_VERSION="${BASE_VERSION}-dev.${NEXT_NUM}"