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
This commit is contained in:
2025-06-14 18:36:15 +02:00
parent 14f0a9b4b1
commit 048b964204
6 changed files with 240 additions and 0 deletions

13
scripts/setup-git.sh Normal file
View File

@@ -0,0 +1,13 @@
#!/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"