We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8bbfe65 commit 0cdd867Copy full SHA for 0cdd867
1 file changed
.github/workflows/bump-and-release.yml
@@ -103,12 +103,14 @@ jobs:
103
104
# === DEVELOPMENT ===
105
elif [ "$TARGET_BRANCH" == "development" ]; then
106
- if [[ "$CURRENT_VERSION" == *"-dev."* || "$SOURCE_BRANCH" == "main" && $SAME_TAG == 'false' ]]; then
+ 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"]]
109
LAST_NUM=${CURRENT_VERSION##*.}
110
NEXT_NUM=$((LAST_NUM + 1))
111
NEW_VERSION="${BASE_VERSION}-dev.${NEXT_NUM}"
112
else
- NEW_VERSION="$MAJOR.$((MINOR + 1)).0-dev.1"
113
+ echo "Strategy: Dev increment"
114
fi
115
echo "Strategy: Dev increment"
116
0 commit comments