Skip to content

Algolia

Algolia #18

Workflow file for this run

name: Algolia # Reindex site search on Algolia
on:
workflow_dispatch:
deployment_status:
jobs:
reindex:
if: github.event.deployment_status.environment == 'production' && github.event.deployment_status.state == 'success'
runs-on: ubuntu-latest
steps:
- name: Reindex Algolia
run: |
curl -H "Content-Type: application/json" \
-X POST \
--user ${{ secrets.CRAWLER_USER_ID }}:${{ secrets.CRAWLER_API_KEY }} \
"https://crawler.algolia.com/api/1/crawlers/${{ secrets.CRAWLER_ID }}/reindex"