Files
auto-changelog-release-action/scripts/setup-git.sh
Max P. 048b964204 feat(scripts): add CI utilities for versioning and changelog
- Add scripts to detect version changes and generate changelogs
- Include setup for installing and configuring git-cliff
- Automate release creation and changelog updates for CI workflows
- Improve Git author setup for consistent commits
2025-06-14 18:36:15 +02:00

14 lines
414 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Optional inputs (positionals) oder Fallback auf Umgebungsvariablen
AUTHOR_NAME="${1:-${CI_COMMIT_AUTHOR_NAME:-CI Bot}}"
AUTHOR_EMAIL="${2:-${CI_COMMIT_AUTHOR_EMAIL:-ci@example.com}}"
echo "🔧 Setting up git author:"
echo " Name : $AUTHOR_NAME"
echo " Email: $AUTHOR_EMAIL"
git config --global user.name "$AUTHOR_NAME"
git config --global user.email "$AUTHOR_EMAIL"