Skip to content

Search Index Scraper #37

Search Index Scraper

Search Index Scraper #37

name: Search Index Scraper
on:
workflow_dispatch:
# run manually
workflow_run:
workflows: ['Deploy to GitHub Pages']
types: [completed]
jobs:
scrape:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Get DocSearch configuration
id: docsearch-config
run: echo "::set-output name=json::$(cat typesense-setup/config.json | jq -r tostring)"
- name: Get docsearch scraper docker image
run: docker pull typesense/docsearch-scraper:latest
- name: Run DocSearch Scraper
run: |
docker run -e CONFIG -e TZ \
-e TYPESENSE_HOST -e TYPESENSE_API_KEY \
-e TYPESENSE_PORT -e TYPESENSE_PROTOCOL \
typesense/docsearch-scraper
env:
TZ: UTC
TYPESENSE_API_KEY: ${{ secrets.TYPESENSE_API_KEY }}
TYPESENSE_HOST: ${{ secrets.TYPESENSE_HOST }}
TYPESENSE_PROTOCOL: https
TYPESENSE_PORT: 443
CONFIG: ${{ steps.docsearch-config.outputs.json }}