#!/bin/bash set -e set -a source ~/Desktop/AI_Brain/env/*.env set +a echo "🌐 Syncing GitHub repo $GITHUB_REPO on branch $BRANCH..." cd ~/Desktop/AI_Brain if [ ! -d ".git" ]; then git clone -b "$BRANCH" https://"$GITHUB_PAT"@github.com/$GITHUB_REPO.git repo else cd repo git reset --hard git pull origin "$BRANCH" fi echo "✅ Repo synced to latest $BRANCH"