Skip to content

Commit bb4457c

Browse files
Copilotrajbos
andcommitted
Fix smoke test CSS bundle check to handle large files
Co-authored-by: rajbos <6085745+rajbos@users.noreply.github.com>
1 parent b356788 commit bb4457c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/deploy-to-pages.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ jobs:
140140
fi
141141
142142
echo "Testing CSS bundle at: $CSS_URL"
143-
if curl -fsSL "$CSS_URL" | head -c 500 | grep -q "body\|html\|\."; then
143+
CSS_CONTENT=$(curl -fsSL "$CSS_URL" | head -c 500 || true)
144+
if echo "$CSS_CONTENT" | grep -q "body\|html\|\."; then
144145
echo "✅ CSS bundle is accessible and contains expected styles"
145146
else
146147
echo "❌ CSS bundle is not accessible or doesn't contain expected styles"

0 commit comments

Comments
 (0)