This is an automated email from the ASF dual-hosted git repository.

cdutz pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new 445ac102a3 chore: Continued working on the release scripts.
445ac102a3 is described below

commit 445ac102a31eed25fd49372938a53365c0e6fa83
Author: Christofer Dutz <[email protected]>
AuthorDate: Thu Jul 31 18:36:34 2025 +0200

    chore: Continued working on the release scripts.
---
 docker-compose.yaml              |  1 -
 tools/docker-compose.yaml        |  1 -
 tools/release-1-create-branch.sh | 22 +++++++++++++++++++++-
 3 files changed, 21 insertions(+), 3 deletions(-)

diff --git a/docker-compose.yaml b/docker-compose.yaml
index dee10b8bda..2d95203042 100644
--- a/docker-compose.yaml
+++ b/docker-compose.yaml
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-version: "3.8"
 services:
   builder:
     build:
diff --git a/tools/docker-compose.yaml b/tools/docker-compose.yaml
index 54258c60e6..1466f580d8 100644
--- a/tools/docker-compose.yaml
+++ b/tools/docker-compose.yaml
@@ -17,7 +17,6 @@
 # under the License.
 #
 
-version: "3.8"
 services:
   releaser:
     build:
diff --git a/tools/release-1-create-branch.sh b/tools/release-1-create-branch.sh
index d3fe57d139..5430afef51 100755
--- a/tools/release-1-create-branch.sh
+++ b/tools/release-1-create-branch.sh
@@ -63,8 +63,28 @@ esac
 # 4. Do a simple maven branch command with pushChanges=false
 
########################################################################################################################
 
+# Attempt to read user.name and user.email (local first, then global)
+GIT_USER_NAME=$(git config user.name || git config --global user.name)
+GIT_USER_EMAIL=$(git config user.email || git config --global user.email)
+
+# Check if either is still unset
+if [[ -z "$GIT_USER_NAME" || -z "$GIT_USER_EMAIL" ]]; then
+  echo "❌ Git user.name and/or user.email not configured."
+  echo
+  echo "Please run one of the following commands:"
+  echo "  git config --global user.name \"Your Name\""
+  echo "  git config --global user.email \"[email protected]\""
+  echo
+  echo "Or configure them just for this repository:"
+  echo "  git config user.name \"Your Name\""
+  echo "  git config user.email \"[email protected]\""
+  exit 1
+fi
+
 if ! docker compose -f "$DIRECTORY/tools/docker-compose.yaml" run releaser \
-        bash -c "/ws/mvnw -e -P 
with-c,with-dotnet,with-go,with-java,with-python,enable-all-checks,update-generated-code
 -Dmaven.repo.local=/ws/out/.repository release:branch 
-DautoVersionSubmodules=true -DpushChanges=false 
-DdevelopmentVersion='$NEW_VERSION' -DbranchName='$BRANCH_NAME'"; then
+        bash -c "git config user.name \"$GIT_USER_NAME\" && \
+           git config user.email \"$GIT_USER_EMAIL\" && \
+           /ws/mvnw -e -P 
with-c,with-dotnet,with-go,with-java,with-python,enable-all-checks,update-generated-code
 -Dmaven.repo.local=/ws/out/.repository release:branch 
-DautoVersionSubmodules=true -DpushChanges=false 
-DdevelopmentVersion='$NEW_VERSION' -DbranchName='$BRANCH_NAME'"; then
     echo "❌ Got non-0 exit code from docker compose, aborting."
     exit 1
 fi

Reply via email to