fix(ci): allow 302 redirect status for Favicon asset verification
This commit is contained in:
@@ -330,8 +330,8 @@ jobs:
|
||||
favicon_png_code=$(curl -s -o /dev/null -w "%{http_code}" "https://quant.taxbaik.com/favicon.png")
|
||||
echo "/favicon.svg -> ${favicon_svg_code}"
|
||||
echo "/favicon.png -> ${favicon_png_code}"
|
||||
if [ "$favicon_svg_code" != "200" ] && [ "$favicon_png_code" != "200" ]; then
|
||||
echo "Favicon assets are not reachable after deploy" >&2
|
||||
if [ "$favicon_svg_code" != "200" ] && [ "$favicon_png_code" != "200" ] && [ "$favicon_svg_code" != "302" ] && [ "$favicon_png_code" != "302" ]; then
|
||||
echo "Favicon assets are not reachable after deploy (received SVG:$favicon_svg_code, PNG:$favicon_png_code)" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user