Skip to content

Commit

Permalink
Update check-api-status.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leo-songye-li authored Nov 19, 2024
1 parent a29de76 commit b165150
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/check-api-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ jobs:
for api in "${apis[@]}"; do
echo "Accessing API with element $api"
response=$(curl -o /dev/null -s -w "%{http_code}\n" "$api")
if [ "$response" != "200" ] && [ "$response" != "301" ]; then
echo "HTTP状态码不等于200且不等于301,发送通知..."
if [ "$response" != "200" ] && [ "$response" != "301" && [ "$response" != "302" ]; then
echo "HTTP状态码不等于200且不等于301/302,发送通知..."
curl -X POST \
-H 'Content-Type: application/json' \
-d '{
Expand Down

0 comments on commit b165150

Please sign in to comment.