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