diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index f6b769a..d829925 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -63,7 +63,8 @@ jobs: id: appdir run: | TS=$(date +%s) - FALLBACK_DIR="$HOME/apps/sistema.build.$TS" + # Use a web-specific build dir to avoid clashes with convex job + FALLBACK_DIR="$HOME/apps/web.build.$TS" mkdir -p "$FALLBACK_DIR" echo "Using APP_DIR (fallback)=$FALLBACK_DIR" echo "EFFECTIVE_APP_DIR=$FALLBACK_DIR" >> "$GITHUB_ENV" @@ -239,8 +240,9 @@ jobs: set -e ROOT="$HOME/apps" KEEP=2 - echo "Scanning $ROOT for old sistema.build.* dirs" - LIST=$(find "$ROOT" -maxdepth 1 -type d -name 'sistema.build.*' | sort -r || true) + PATTERN='web.build.*' + echo "Scanning $ROOT for old $PATTERN dirs" + LIST=$(find "$ROOT" -maxdepth 1 -type d -name "$PATTERN" | sort -r || true) echo "$LIST" | sed -n "1,${KEEP}p" | sed 's/^/Keeping: /' || true echo "$LIST" | sed "1,${KEEP}d" | while read dir; do [ -z "$dir" ] && continue @@ -280,7 +282,8 @@ jobs: id: appdir run: | TS=$(date +%s) - FALLBACK_DIR="$HOME/apps/sistema.build.$TS" + # Use a convex-specific build dir to avoid clashes with web job + FALLBACK_DIR="$HOME/apps/convex.build.$TS" mkdir -p "$FALLBACK_DIR" echo "Using APP_DIR (fallback)=$FALLBACK_DIR" echo "EFFECTIVE_APP_DIR=$FALLBACK_DIR" >> "$GITHUB_ENV" @@ -366,7 +369,8 @@ jobs: set -e ROOT="$HOME/apps" KEEP=2 - LIST=$(find "$ROOT" -maxdepth 1 -type d -name 'sistema.build.*' | sort -r || true) + PATTERN='convex.build.*' + LIST=$(find "$ROOT" -maxdepth 1 -type d -name "$PATTERN" | sort -r || true) echo "$LIST" | sed -n "1,${KEEP}p" | sed 's/^/Keeping: /' || true echo "$LIST" | sed "1,${KEEP}d" | while read dir; do [ -z "$dir" ] && continue