Skip to content

Commit 07ee2d2

Browse files
micahwalterclaude
andcommitted
Fix infra-deploy summary step failing when no templates changed
[ ] && echo exits with code 1 when the condition is false, causing bash -e to abort. Use an if/elif/else block instead so the step always exits cleanly. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 8dca74a commit 07ee2d2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/infra-deploy.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,9 @@ jobs:
8686
8787
if [ "$MANUAL" = "workflow_dispatch" ]; then
8888
echo "Deploy mode: manual (workflow_dispatch) — both stacks deployed"
89-
else
89+
elif [ "$PRIMARY" = "true" ] || [ "$SECONDARY" = "true" ]; then
9090
[ "$PRIMARY" = "true" ] && echo "Deployed: micahwalter-www (us-east-1)"
9191
[ "$SECONDARY" = "true" ] && echo "Deployed: micahwalter-www-secondary (us-east-2)"
92+
else
93+
echo "No infra templates changed — nothing deployed"
9294
fi

0 commit comments

Comments
 (0)