Skip to content

Index Developer Docs #220

Index Developer Docs

Index Developer Docs #220

name: Index Developer Docs
on:
schedule:
- cron: '0 2 * * *'
workflow_dispatch:
inputs:
reason:
description: 'Reason for running (optional)'
required: false
default: 'Manual trigger'
dry_run:
description: 'Dry run (validate extraction without uploading)'
required: false
type: boolean
default: false
jobs:
run-indexer:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up mise
uses: jdx/mise-action@v2
with:
cache: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install dependencies
working-directory: scripts/indexing
run: uv sync
- name: Install Playwright browsers
working-directory: scripts/indexing
run: uv run playwright install
- name: Run indexing script
working-directory: scripts/indexing
env:
GLEAN_INDEXING_API_TOKEN: ${{ secrets.GLEAN_INDEXING_API_TOKEN }}
GLEAN_INSTANCE: ${{ secrets.GLEAN_INSTANCE }}
DRY_RUN: ${{ inputs.dry_run }}
run: uv run main.py