Skip to content

Merge pull request #770 from RizaFarheen/main #340

Merge pull request #770 from RizaFarheen/main

Merge pull request #770 from RizaFarheen/main #340

Workflow file for this run

# 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