From 2b707379bbda9cacb386f9cb0478dc709fa39a02 Mon Sep 17 00:00:00 2001 From: Esdras Renan Date: Wed, 8 Oct 2025 14:21:28 -0300 Subject: [PATCH] ci: protect local .env files from rsync --delete via filter rules --- .github/workflows/ci-cd-web-desktop.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci-cd-web-desktop.yml b/.github/workflows/ci-cd-web-desktop.yml index b69ec4d..486f4c6 100644 --- a/.github/workflows/ci-cd-web-desktop.yml +++ b/.github/workflows/ci-cd-web-desktop.yml @@ -30,10 +30,14 @@ jobs: node-version: 20 cache: 'pnpm' - - name: Sync workspace to APP_DIR + - name: Sync workspace to APP_DIR (preserving local env) run: | mkdir -p "$APP_DIR" rsync -az --delete \ + --filter='protect .env' \ + --filter='protect .env*' \ + --filter='protect apps/desktop/.env*' \ + --filter='protect convex/.env*' \ --exclude '.git' \ --exclude '.next' \ --exclude '.env*' \