更新 .github/workflows/IndexNow.yml
IndexNow / submit (push) Successful in 0s
Code quality / quality (push) Failing after 1s
Build and Check / Astro Check for Node.js 23 (push) Canceled after 1s
Build and Check / Astro Check for Node.js 22 (push) Failing after 1m17s
Build and Check / Astro Build for Node.js 22 (push) Failing after 1m24s
Build and Check / Astro Build for Node.js 23 (push) Canceled after 0s
IndexNow / submit (push) Successful in 0s
Code quality / quality (push) Failing after 1s
Build and Check / Astro Check for Node.js 23 (push) Canceled after 1s
Build and Check / Astro Check for Node.js 22 (push) Failing after 1m17s
Build and Check / Astro Build for Node.js 22 (push) Failing after 1m24s
Build and Check / Astro Build for Node.js 23 (push) Canceled after 0s
这样下次运行的时候,日志里就会多打印一行类似 HTTP Status: 200 或 202 的状态码。如果是 200/202,就说明 Bing 确认收录了。
This commit is contained in:
1 parent
c66e31eb11
commit
679ab02b4d
1 file changed
+1
-1
@@ -21,7 +21,7 @@ jobs:
|
||||
run: |
|
||||
# 取前 100 条 URL,拼成 JSON 数组(IndexNow 单次上限 10000 条)
|
||||
URLS=$(head -n 1000 urls.txt | jq -R -s -c 'split("\n") | map(select(length>0))')
|
||||
curl -s -X POST "https://www.bing.com/indexnow" \
|
||||
curl -s -w "\nHTTP Status: %{http_code}\n" -X POST "https://www.bing.com/indexnow" \
|
||||
-H "Content-Type: application/json" \
|
||||
-d "{
|
||||
\"host\": \"blog.mckero.com\",
|
||||
|
||||
Reference in new issue
Block a user