fix: allow redirect on public taxbaik smoke
TaxBaik CI/CD / build-and-deploy (push) Successful in 3m49s

This commit is contained in:
2026-07-04 11:38:05 +09:00
parent 089baa72cb
commit 7546c36528
+2 -2
View File
@@ -353,7 +353,7 @@ jobs:
local status local status
status=$(curl -s -o /dev/null -w '%{http_code}' --max-time 15 "$url" || echo "000") status=$(curl -s -o /dev/null -w '%{http_code}' --max-time 15 "$url" || echo "000")
if [ "$allow_redirect" = "1" ]; then if [ "$allow_redirect" = "1" ]; then
if ! printf '%s' "$status" | grep -Eq '^(200|301|302|307|308)$'; then if ! printf '%s' "$status" | grep -Eq '^(200|301|302|303|307|308)$'; then
echo " ✗ $url → HTTP $status" >&2 echo " ✗ $url → HTTP $status" >&2
return 1 return 1
fi fi
@@ -369,7 +369,7 @@ jobs:
PUBLIC_OK=false PUBLIC_OK=false
for i in 1 2 3; do for i in 1 2 3; do
if check_public "https://www.taxbaik.com/" 1 \ if check_public "https://www.taxbaik.com/" 1 \
&& check_public "https://www.taxbaik.com/taxbaik/" \ && check_public "https://www.taxbaik.com/taxbaik/" 1 \
&& check_public "https://www.taxbaik.com/taxbaik/admin/login"; then && check_public "https://www.taxbaik.com/taxbaik/admin/login"; then
PUBLIC_OK=true PUBLIC_OK=true
break break