Skip to content

Commit

Permalink
Fixed bug in version increment workflow. GitHub workflow auth still n…
Browse files Browse the repository at this point in the history
…ot patched
  • Loading branch information
chrismuntean committed Dec 26, 2024
1 parent 33d4574 commit bc9fcbe
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ jobs:
- name: Increment Patch Version
id: increment
run: |
VERSION=$(cat VERSION || echo "0.0.0") # Fallback to "0.0.0" if VERSION is empty
IFS='.' read -r MAJOR MINOR PATCH <<< "$VERSION"
MAJOR=${MAJOR:-0} # Default to 0 if MAJOR is missing
MINOR=${MINOR:-0} # Default to 0 if MINOR is missing
PATCH=${PATCH:-0} # Default to 0 if PATCH is missing
PATCH=$((PATCH + 1))
NEW_VERSION="$MAJOR.$MINOR.$PATCH"
echo "New Version: $NEW_VERSION"
Expand Down

0 comments on commit bc9fcbe

Please sign in to comment.