chore: fix GitHub Actions on main (#10012)
This commit is contained in:
parent
e0581c6915
commit
4aefaee046
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@ -103,8 +103,8 @@ jobs:
|
|||||||
CRAWLER_ID: ${{secrets.ALGOLIA_CRAWLER_ID}}
|
CRAWLER_ID: ${{secrets.ALGOLIA_CRAWLER_ID}}
|
||||||
run: |
|
run: |
|
||||||
RESPONSE=$(curl -H "Content-Type: application/json" -X GET --user "$CRAWLER_USER_ID:$CRAWLER_API_KEY" \
|
RESPONSE=$(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\":true" ); \
|
"https://crawler.algolia.com/api/1/crawlers/$CRAWLER_ID" | grep "\"blocked\":true" || true ); \
|
||||||
if [ ! -z "$RESPONSE" ]; then echo "\nPlease go to https://crawler.algolia.com/" && exit 1; fi
|
if [ ! -z "$RESPONSE" ]; then echo "Please go to https://crawler.algolia.com/" && exit 1; fi
|
||||||
- name: Trigger Algolia reindexing
|
- name: Trigger Algolia reindexing
|
||||||
env:
|
env:
|
||||||
CRAWLER_USER_ID: ${{secrets.ALGOLIA_CRAWLER_USER_ID}}
|
CRAWLER_USER_ID: ${{secrets.ALGOLIA_CRAWLER_USER_ID}}
|
||||||
|
Loading…
Reference in New Issue
Block a user