Skip to content

Commit

Permalink
fix: new_version edge cases
Browse files Browse the repository at this point in the history
  • Loading branch information
kalote committed Dec 17, 2024
1 parent 33f74f1 commit c331a3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/types.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ jobs:
echo "Current version: $CURRENT_VERSION"
VERSION_FRAGMENT=""
BETA=""
# Determine the type of version bump
if [[ "$BRANCH_NAME" == "main" ]]; then
Expand Down Expand Up @@ -151,10 +152,9 @@ jobs:
PATCH=$((PATCH + 1))
elif [[ "$VERSION_FRAGMENT" == "beta" ]]; then
PATCH=$((PATCH + 1))
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}-beta"
else
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}"
BETA="-beta"
fi
NEW_VERSION="${MAJOR}.${MINOR}.${PATCH}${BETA}"
echo "New version: $NEW_VERSION"
echo "NEW_VERSION=$NEW_VERSION" >> $GITHUB_ENV
Expand Down

0 comments on commit c331a3f

Please sign in to comment.