added valid return codes

This commit is contained in:
Oliver Kieselbach
2026-03-20 08:21:04 +01:00
parent 1236c1b51e
commit 53a3768cdf
+1 -1
View File
@@ -22,6 +22,6 @@ jobs:
}")
echo "IndexNow response: HTTP $RESPONSE"
echo "Submitted $(echo "$URLS" | wc -l) URLs"
if [ "$RESPONSE" -ne 200 ]; then
if [ "$RESPONSE" -lt 200 ] || [ "$RESPONSE" -ge 300 ]; then
echo "::warning::IndexNow returned HTTP $RESPONSE"
fi