Skip to content
This repository has been archived by the owner on Apr 1, 2024. It is now read-only.

Build: ruby 3.0, typesense/docsearch-scraper 0.9, github actions v4 #225

Build: ruby 3.0, typesense/docsearch-scraper 0.9, github actions v4

Build: ruby 3.0, typesense/docsearch-scraper 0.9, github actions v4 #225

Workflow file for this run

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 == 'qunitjs' }} # skip on forks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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