Skip to content

Commit

Permalink
chore: GitHub Actions needs 0 exit for all commands (puppeteer#10010)
Browse files Browse the repository at this point in the history
  • Loading branch information
Lightning00Blade authored Apr 12, 2023
1 parent 3f6670b commit e0581c6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,9 +102,9 @@ jobs:
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;
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" ); \
if [ ! -z "$RESPONSE" ]; then echo "\nPlease go to https://crawler.algolia.com/" && exit 1; fi
- name: Trigger Algolia reindexing
env:
CRAWLER_USER_ID: ${{secrets.ALGOLIA_CRAWLER_USER_ID}}
Expand Down

0 comments on commit e0581c6

Please sign in to comment.