Deploy all stacks on dev
Some checks failed
Deploy Stacks / deploy-prod (push) Has been skipped
Deploy Stacks / deploy-dev (push) Failing after 17s

This commit is contained in:
knight 2025-12-31 20:12:13 -05:00
parent 13989e2b59
commit aeac252491

View File

@ -22,9 +22,14 @@ jobs:
- name: Find and deploy changed stacks
env:
DOMAIN: ${{ secrets.DOMAIN }}
DEPLOY_ALL: "1"
run: |
# Find changed stacks
STACKS=$(git diff --name-only HEAD~1 HEAD 2>/dev/null | grep '^stacks/' | cut -d'/' -f2 | sort -u || echo "")
if [ "$DEPLOY_ALL" = "1" ]; then
STACKS=$(ls stacks/)
else
# Find changed stacks
STACKS=$(git diff --name-only HEAD~1 HEAD 2>/dev/null | grep '^stacks/' | cut -d'/' -f2 | sort -u || echo "")
fi
if [ -z "$STACKS" ]; then
echo "No stacks changed, deploying all..."