mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
chore: stop CI if search crawler is blocked (#10008)
This commit is contained in:
parent
26c81b7408
commit
3f6670b987
9
.github/workflows/ci.yml
vendored
9
.github/workflows/ci.yml
vendored
@ -96,6 +96,15 @@ jobs:
|
||||
publish_dir: ./website/build
|
||||
user_name: release-please[bot]
|
||||
user_email: 55107282+release-please[bot]@users.noreply.github.com
|
||||
- name: Test Algolia if Crawler is blocked
|
||||
env:
|
||||
CRAWLER_USER_ID: ${{secrets.ALGOLIA_CRAWLER_USER_ID}}
|
||||
CRAWLER_API_KEY: ${{secrets.ALGOLIA_CRAWLER_API_KEY}}
|
||||
CRAWLER_ID: ${{secrets.ALGOLIA_CRAWLER_ID}}
|
||||
run: |
|
||||
curl -H "Content-Type: application/json" -X GET --user "$CRAWLER_USER_ID:$CRAWLER_API_KEY" \
|
||||
"https://crawler.algolia.com/api/1/crawlers/$CRAWLER_ID" | grep "\"blocked\":true1"; \
|
||||
if [ $? -eq 0 ]; then echo "Please go to https://crawler.algolia.com/" && exit 1; fi && exit 0;
|
||||
- name: Trigger Algolia reindexing
|
||||
env:
|
||||
CRAWLER_USER_ID: ${{secrets.ALGOLIA_CRAWLER_USER_ID}}
|
||||
|
Loading…
Reference in New Issue
Block a user