diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e2c87cf..9f74c6c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -108,8 +108,14 @@ jobs: # Check if this version tag already exists if git tag -l "v$CURRENT_VERSION" | grep -q .; then - echo "Tag v$CURRENT_VERSION already exists, skipping release" - echo "should_release=false" >> $GITHUB_OUTPUT + echo "Tag v$CURRENT_VERSION already exists, auto-bumping patch version" + # Auto-bump patch version + IFS='.' read -r MAJOR MINOR PATCH <<< "$CURRENT_VERSION" + NEW_VERSION="${MAJOR}.${MINOR}.$((PATCH + 1))" + echo "Auto-bumped to: $NEW_VERSION" + echo "should_release=true" >> $GITHUB_OUTPUT + echo "version=$NEW_VERSION" >> $GITHUB_OUTPUT + echo "needs_bump=true" >> $GITHUB_OUTPUT else echo "New version v$CURRENT_VERSION detected, will release" echo "should_release=true" >> $GITHUB_OUTPUT