ci: protect local .env files from rsync --delete via filter rules

This commit is contained in:
Esdras Renan 2025-10-08 14:21:28 -03:00
parent 7a28263924
commit 2b707379bb

View file

@ -30,10 +30,14 @@ jobs:
node-version: 20 node-version: 20
cache: 'pnpm' cache: 'pnpm'
- name: Sync workspace to APP_DIR - name: Sync workspace to APP_DIR (preserving local env)
run: | run: |
mkdir -p "$APP_DIR" mkdir -p "$APP_DIR"
rsync -az --delete \ rsync -az --delete \
--filter='protect .env' \
--filter='protect .env*' \
--filter='protect apps/desktop/.env*' \
--filter='protect convex/.env*' \
--exclude '.git' \ --exclude '.git' \
--exclude '.next' \ --exclude '.next' \
--exclude '.env*' \ --exclude '.env*' \