Commit fe4a1552 for tesseract

commit fe4a1552cad7b466e37a5f614595d13fb0923a4a
Author: Stefan Weil <sw@weilnetz.de>
Date:   Thu Dec 3 11:19:20 2026 +0100

    Don't change the git configuration in nsis/build.sh

    The script makes an annotated tag for the version of the installer.
    For that it set the global git configuration to the name and e-mail
    address of one developer, so a local run of the script replaced the
    git identity of whoever ran it.

    The tag must be annotated because configure gets the version from
    git describe, and an annotated tag needs a tagger. Pass the tagger to
    the git tag command in its environment and use the identity of GitHub
    Actions for it. The git configuration is no longer changed, and the
    script contains no personal data.

    Tested with a cross build for the MSYS2 environment CLANG64 without a
    git identity in the configuration: the tag is annotated, configure
    gets the version v5.5.5.20261203 from it, and no global git
    configuration is written. Not tested on a GitHub runner.

    Assisted-by: Claude Fable 5.2 (Anthropic)
    Signed-off-by: Stefan Weil <sw@weilnetz.de>

diff --git a/nsis/build.sh b/nsis/build.sh
index 36f5786c..f27f8dfc 100755
--- a/nsis/build.sh
+++ b/nsis/build.sh
@@ -51,8 +51,11 @@ $SUDO apt-get install --assume-yes --no-install-recommends --quiet \
   automake libtool make pkg-config default-jdk-headless \
   nsis python3-venv unzip

-git config --global user.email "sw@weilnetz.de"
-git config --global user.name "Stefan Weil"
+# configure gets the version from git describe, which only uses annotated
+# tags. Such a tag needs a tagger. Set it for this command only, so that
+# the git configuration is not changed and no personal data is needed.
+GIT_COMMITTER_NAME="github-actions[bot]" \
+GIT_COMMITTER_EMAIL="41898282+github-actions[bot]@users.noreply.github.com" \
 git tag -a "v$TAG" -m "Tesseract $TAG"

 # Run autogen.