Skip to content

Commit f11309f

Browse files
authored
Merge pull request #50 from devops-actions/copilot/fix-49
Fix smoke test CSS bundle validation for large files
2 parents 54b7db9 + bb4457c commit f11309f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.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)