refactor(scripts): standardize scripts and improve readability
All checks were successful
Auto Changelog & Release / release (push) Successful in 6s

- Removed unnecessary comments and adjusted formatting for clarity
- Translated German comments, logs, and error messages to English
- Improved consistency in variable naming and messages across scripts
- Enhanced error handling and output for better user feedback
This commit is contained in:
2025-06-14 19:50:26 +02:00
parent bb27eccc86
commit 041d7e9a8a
4 changed files with 27 additions and 27 deletions

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
set -euo pipefail
# === Inputs from GitHub/Gitea Action environment ===
# Inputs from GitHub/Gitea Action environment
GIT_REF="${GITHUB_REF:-}"
COMMIT_BEFORE="${GITHUB_EVENT_BEFORE:-}"
COMMIT_AFTER="${GITHUB_SHA:-}"
@@ -11,7 +11,7 @@ echo "🔍 Comparing commits:"
echo "Before: $COMMIT_BEFORE"
echo "After: $COMMIT_AFTER"
# === Check branch condition ===
# Check branch condition
if [[ "$GIT_REF" != "refs/heads/main" ]]; then
echo "Not on 'main' branch – skipping version check."
echo "version_changed=false" >> "$GITHUB_OUTPUT"