1
0
mirror of synced 2026-01-05 12:07:35 -05:00

English search sync (#21446)

This commit is contained in:
Rachael Sewell
2021-09-13 10:30:08 -07:00
committed by GitHub
parent a1e261c1cd
commit 94e3c092d3
4 changed files with 27 additions and 1 deletions

View File

@@ -21,6 +21,15 @@ name: Sync search indexes
on:
workflow_dispatch:
inputs:
language:
description: 'Language to generate the search index for. Can be one of: `en` English, `cn` Chinese simplified, `ja` Japanese, `es` Spanish, `pt` Portuguese., `all` all languages.'
required: false
default: 'all'
version:
description: 'Version to generate the search index for. Can be one of: `free-pro-team@latest`, `enterprise-server@<RELEASE NUMBER>`, `github-ae@latest`, `all` all versions.'
required: false
default: 'all'
schedule:
- cron: '53 0/8 * * *' # Run every eight hours at 53 minutes past the hour
@@ -58,6 +67,8 @@ jobs:
- name: Update search indexes
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
VERSION: ${{ github.event.inputs.version }}
LANGUAGE: ${{ github.event.inputs.language }}
run: npm run sync-search
- name: Update private docs repository search indexes