tiptap/.github/workflows/docsearch.yml

28 lines
820 B
YAML
Raw Normal View History

2023-02-09 00:02:19 +08:00
# Automate, customize, and execute your software development workflows right in your repository with GitHub Actions.
# Documentation: https://docs.github.com/en/actions
name: docsearch
on:
workflow_dispatch:
2023-02-09 00:42:29 +08:00
schedule:
2023-02-09 00:50:11 +08:00
- cron: '5 0 * * *'
2023-02-09 00:02:19 +08:00
jobs:
docsearch:
2023-02-09 00:14:08 +08:00
runs-on: ubuntu-latest
2023-02-09 00:02:19 +08:00
steps:
2023-02-09 00:17:38 +08:00
- uses: actions/checkout@v3.0.2
2023-02-09 00:02:19 +08:00
- name: Run DocSearch Scraper
shell: bash
run: |
docker run \
-e TYPESENSE_API_KEY=${{ secrets.TYPESENSE_API_KEY }} \
-e TYPESENSE_HOST="${{ secrets.TYPESENSE_HOST }}" \
-e TYPESENSE_PORT="${{ secrets.TYPESENSE_PORT }}" \
-e TYPESENSE_PROTOCOL="${{ secrets.TYPESENSE_PROTOCOL }}" \
-e CONFIG="$(cat docsearch.config.json | jq -r tostring)" \
typesense/docsearch-scraper