Skip to content

feat: add update-search-index action #1

feat: add update-search-index action

feat: add update-search-index action #1

name: Update Search Index
on:
push:
# Run when merging from official repo to check if translations are outdated
branches:
- main
workflow_dispatch: # Allow manual triggering
# Add permissions needed for creating PRs
permissions:
contents: write
jobs:
translate:
runs-on: ubuntu-latest
steps:
# Checkout the repository first to access local actions
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Setup Tools
uses: ./.github/actions/setup
- name: Build docs app
shell: bash
run: pnpm build:docs
- name: Run search index update
shell: bash
run: pnpm run update-search-index