Index Developer Docs #277
This file contains hidden or 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: 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@v4 | |
| 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 |