2022-09-08 17:31:19 -04:00
|
|
|
name: Rebuild Search Index
|
|
|
|
on:
|
2022-09-12 17:21:34 -04:00
|
|
|
schedule:
|
|
|
|
- cron: '0 10 * * *' # Once per day at 10am UTC
|
2022-09-08 17:31:19 -04:00
|
|
|
workflow_dispatch:
|
2022-09-12 17:21:34 -04:00
|
|
|
permissions: read-all
|
2022-09-08 17:31:19 -04:00
|
|
|
jobs:
|
2022-09-12 17:21:34 -04:00
|
|
|
build:
|
|
|
|
if: github.repository_owner == 'spring-projects'
|
2022-11-21 19:49:18 -05:00
|
|
|
runs-on: ubuntu-latest
|
2022-09-08 17:31:19 -04:00
|
|
|
steps:
|
2022-09-12 17:21:34 -04:00
|
|
|
- name: Checkout
|
2022-11-21 19:49:18 -05:00
|
|
|
uses: actions/checkout@v3
|
2022-09-12 17:21:34 -04:00
|
|
|
with:
|
|
|
|
ref: docs-build
|
|
|
|
fetch-depth: 1
|
|
|
|
- name: Dispatch
|
|
|
|
env:
|
|
|
|
GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
|
2022-11-21 19:49:18 -05:00
|
|
|
run: gh workflow run rebuild-search-index.yml -r $(git rev-parse --abbrev-ref HEAD)
|