From 8567a045d914a5ab58fb3ed2f262c0b5eec014c2 Mon Sep 17 00:00:00 2001 From: "oleg.vodyanov91@gmail.com" Date: Tue, 27 Jan 2026 00:20:41 +0400 Subject: [PATCH] update pipeline --- pipelines/docbot | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/pipelines/docbot b/pipelines/docbot index 5699bd5..f1d8d6e 100644 --- a/pipelines/docbot +++ b/pipelines/docbot @@ -12,6 +12,16 @@ pipeline { set -euo pipefail cd ~/docbot || exit 1 git diff --name-only origin/main main | grep -i 'alembic/versions' > db_script.txt || true + + if [ "$(git rev-parse --abbrev-ref HEAD)" != "main" ]; then + git checkout main + fi + + if git pull origin main | grep -q "Already up to date."; then + echo "No updates to deploy." + exit 0 + fi + git pull origin main . .venv/bin/activate if [ -s db_script.txt ]; then