.gitea/workflows/update.yml aktualisiert

This commit is contained in:
2025-12-20 19:12:29 +01:00
parent dfb6fef975
commit 17a5f96546

View File

@@ -14,11 +14,8 @@ jobs:
# --- Debug / Sicherheit ---
- name: Show workflow context
run: |
echo "Repository: $GITEA_REPOSITORY"
echo "Ref: $GITEA_REF"
echo "Commit: $GITEA_COMMIT_SHA"
echo "Event: $GITEA_EVENT_NAME"
echo "Runner: $GITEA_RUNNER_NAME"
echo "Branch: $(git branch --show-current)"
echo "Commit: $(git rev-parse HEAD)"
echo "User: $(whoami)"
echo "Host: $(hostname)"
echo "Date: $(date)"
@@ -27,8 +24,9 @@ jobs:
# --- Sicherheitsbremse ---
- name: Ensure correct branch
run: |
if [ "$GITEA_REF_NAME" != "main" ]; then
echo "❌ This workflow must run on main only"
BRANCH="$(git branch --show-current)"
if [ "$BRANCH" != "main" ]; then
echo "❌ This workflow must run on main (current: $BRANCH)"
exit 1
fi