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:
13
scripts/setup-git.sh
Normal file
13
scripts/setup-git.sh
Normal 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"
|
Reference in New Issue
Block a user