Reindex Algolia Crawler #14967
This file contains 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: Reindex Algolia Crawler | |
on: | |
push: | |
branches: [ "main" ] | |
schedule: | |
- cron: "0 * * * *" | |
workflow_dispatch: | |
jobs: | |
reindex: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
- run: npm ci | |
- name: Reindex Algolia Crawler | |
env: | |
CRAWLER_API_KEY: ${{secrets.CRAWLER_API_KEY}} | |
CRAWLER_USER_ID: ${{secrets.CRAWLER_USER_ID}} | |
CRAWLER_ID: ${{secrets.CRAWLER_ID}} | |
run: npm run algolia |