revert: improve CI readability with grouped git setup logs
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s

This reverts commit 8a3960ad87.
This commit is contained in:
2025-06-29 13:41:47 +02:00
parent 36e60c24ac
commit 039a14a473

View File

@@ -1,9 +1,6 @@
#!/usr/bin/env bash #!/usr/bin/env bash
set -euo pipefail set -euo pipefail
# Open a log group for better readability in CI pipelines
echo "::group::🔧 Git Author Setup"
# Optional inputs (positionals) or fallback to environment variables # Optional inputs (positionals) or fallback to environment variables
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}" AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@bot.none}}" AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@bot.none}}"
@@ -21,17 +18,12 @@ CONFIGURED_EMAIL=$(git config --global user.email)
if [[ "$CONFIGURED_NAME" != "$AUTHOR_NAME" ]]; then if [[ "$CONFIGURED_NAME" != "$AUTHOR_NAME" ]]; then
echo "❌ Error: Git username was not set correctly!" >&2 echo "❌ Error: Git username was not set correctly!" >&2
echo "::endgroup::"
exit 1 exit 1
fi fi
if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then if [[ "$CONFIGURED_EMAIL" != "$AUTHOR_EMAIL" ]]; then
echo "❌ Error: Git email was not set correctly!" >&2 echo "❌ Error: Git email was not set correctly!" >&2
echo "::endgroup::"
exit 1 exit 1
fi fi
echo "✅ Git configuration completed successfully." echo "✅ Git configuration completed successfully."
# Close the log group
echo "::endgroup::"