Skip to content

Commit 0cdd867

Browse files
committed
fix: test
1 parent 8bbfe65 commit 0cdd867

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/bump-and-release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,12 +103,14 @@ jobs:
103103
104104
# === DEVELOPMENT ===
105105
elif [ "$TARGET_BRANCH" == "development" ]; then
106-
if [[ "$CURRENT_VERSION" == *"-dev."* || "$SOURCE_BRANCH" == "main" && $SAME_TAG == 'false' ]]; then
106+
if [[ "$CURRENT_VERSION" == *"-dev."* && "$SAME_TAG" == "true" ]]; then
107+
NEW_VERSION="$MAJOR.$((MINOR + 1)).0-dev.1"
108+
else if [[ "$CURRENT_VERSION" == *"-dev."* || "$SOURCE_BRANCH" == "main"]]
107109
LAST_NUM=${CURRENT_VERSION##*.}
108110
NEXT_NUM=$((LAST_NUM + 1))
109111
NEW_VERSION="${BASE_VERSION}-dev.${NEXT_NUM}"
110112
else
111-
NEW_VERSION="$MAJOR.$((MINOR + 1)).0-dev.1"
113+
echo "Strategy: Dev increment"
112114
fi
113115
echo "Strategy: Dev increment"
114116
else

0 commit comments

Comments
 (0)