Run Algolia Crawler #178
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Run Algolia Crawler | |
| on: | |
| schedule: | |
| - cron: '0 2 * * *' # Runs every day at 2:00 AM UTC | |
| workflow_dispatch: # 👈 This line enables the manual "Run workflow" button | |
| jobs: | |
| run-crawler: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Trigger Algolia Crawler | |
| run: | | |
| curl -X POST 'https://crawler.algolia.com/api/1/crawlers/8b786e95-d4a9-4229-a89b-d7bb66/reindex' \ | |
| -H 'Content-Type: application/json' \ | |
| -H 'X-Algolia-API-Key: ${{ secrets.ALGOLIA_CRAWLER_API_KEY }}' \ | |
| -H 'X-Algolia-Application-Id: ${{ secrets.ALGOLIA_APP_ID }}' |