Merge pull request #588 from RizaFarheen/main #170
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
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node | |
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | |
name: Reindex Docs | |
on: | |
push: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
index: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Run DocSearch Scrapper | |
run: | | |
docker run \ | |
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \ | |
-e TYPESENSE_HOST="uo5hblry7wamtzg0p-1.a1.typesense.net" \ | |
-e TYPESENSE_PORT="443" \ | |
-e TYPESENSE_PROTOCOL="https" \ | |
-e CONFIG="$(cat ./search.config.json | jq -r tostring)" \ | |
typesense/docsearch-scraper |