File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -57,14 +57,14 @@ jobs:
5757 fi
5858
5959 echo "Latest tag found: $LATEST_TAG"
60-
60+
6161 # Extract version numbers (remove 'v' prefix if present for backwards compatibility)
6262 VERSION_WITHOUT_V=${LATEST_TAG#v}
63-
63+
6464 # Parse major and minor (ignore patch since we don't support it)
6565 MAJOR=$(echo $VERSION_WITHOUT_V | cut -d. -f1)
6666 MINOR=$(echo $VERSION_WITHOUT_V | cut -d. -f2)
67-
67+
6868 # Calculate next version based on input
6969 if [ "${{ github.event.inputs.version_bump }}" = "major" ]; then
7070 NEXT_MAJOR=$((MAJOR + 1))
@@ -73,10 +73,10 @@ jobs:
7373 NEXT_MAJOR=$MAJOR
7474 NEXT_MINOR=$((MINOR + 1))
7575 fi
76-
76+
7777 # Create new version (always without v prefix)
7878 NEXT_VERSION="${NEXT_MAJOR}.${NEXT_MINOR}.0"
79-
79+
8080 echo "Next version: $NEXT_VERSION"
8181 echo "RELEASE_VERSION=$NEXT_VERSION" >> $GITHUB_ENV
8282 echo "version=$NEXT_VERSION" >> $GITHUB_OUTPUT
You can’t perform that action at this time.
0 commit comments