Merge pull request #278 from MONEI/master #1
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: Reindex Algolia Crawler | |
| on: | |
| push: | |
| branches: | |
| - prod | |
| jobs: | |
| reindex: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Enable Corepack | |
| run: corepack enable | |
| - name: Install Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version-file: .nvmrc | |
| cache: yarn | |
| - name: Install dependencies | |
| run: yarn --immutable --silent | |
| - name: Run reindex script | |
| run: yarn reindex | |
| env: | |
| CRAWLER_USER_ID: ${{ secrets.CRAWLER_USER_ID }} | |
| CRAWLER_API_KEY: ${{ secrets.CRAWLER_API_KEY }} | |
| CRAWLER_ID: ${{ secrets.CRAWLER_ID }} |