typesense #620
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: typesense | |
on: | |
# Once a day at 11:30 UTC <https://crontab.guru/> | |
schedule: | |
- cron: '30 11 * * *' | |
# Or after a deployment | |
push: | |
branches: | |
- main | |
# Or manually | |
workflow_dispatch: | |
jobs: | |
typesense: | |
name: Update Typesense | |
if: ${{ github.repository_owner == 'jquery' }} # skip on forks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
- name: Docsearch Scraper | |
shell: bash | |
run: | | |
docker run \ | |
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_ADMIN_KEY }} \ | |
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \ | |
-e TYPESENSE_PORT="443" \ | |
-e TYPESENSE_PROTOCOL="https" \ | |
-e CONFIG="$(cat docsearch.config.json | jq -r tostring)" \ | |
typesense/docsearch-scraper:0.9.1 |