From a0e2a35e66b91886ad042975667b964f431439cc Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Thu, 12 Mar 2026 13:13:33 +0100 Subject: [PATCH] fix(rag): Git pull deploy dir before ingestion The RAG workflow mounts scripts from /opt/breakpilot-compliance/scripts (deploy dir) but this may not have the latest fixes if CI hasn't deployed yet. Add explicit git pull before running ingestion. Co-Authored-By: Claude Opus 4.6 --- .gitea/workflows/rag-ingest.yaml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.gitea/workflows/rag-ingest.yaml b/.gitea/workflows/rag-ingest.yaml index 612ff88..9c4258f 100644 --- a/.gitea/workflows/rag-ingest.yaml +++ b/.gitea/workflows/rag-ingest.yaml @@ -67,6 +67,11 @@ jobs: echo "BreakPilot Netzwerk: $BP_NETWORK" echo "" + # Scripts aus dem Deploy-Dir aktualisieren (git pull) + # damit die neuesten Fixes verfuegbar sind + cd "${DEPLOY_DIR}" && git pull --no-rebase origin main 2>/dev/null || true + cd - + # Ingestion in einem Container auf dem BP-Netzwerk ausfuehren, # mit Zugriff auf die Scripts aus dem Deploy-Dir docker run --rm \