We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 39e7c1a commit c670f38Copy full SHA for c670f38
1 file changed
.github/workflows/test.yml
@@ -78,12 +78,13 @@ jobs:
78
79
- name: Wait for wp-admin
80
run: |
81
- for i in $(seq 1 24); do
82
- if curl -sf -o /dev/null -w "%{http_code}" --connect-timeout 2 http://127.0.0.1:8071/wp-admin/ | grep -qE '200|302'; then
83
- echo "wp-admin ready"
+ for i in $(seq 1 36); do
+ code=$(curl -s -o /dev/null -w "%{http_code}" --connect-timeout 5 --max-time 10 http://127.0.0.1:8071/wp-login.php || echo "000")
+ if echo "$code" | grep -qE '^200$'; then
84
+ echo "wp-admin ready (wp-login.php returned $code)"
85
break
86
fi
- if [ $i -eq 24 ]; then echo "wp-admin timeout"; exit 1; fi
87
+ if [ $i -eq 36 ]; then echo "wp-admin timeout (last code: $code)"; exit 1; fi
88
sleep 5
89
done
90
0 commit comments