rebuild-search-index.yml 534 B

1234567891011121314151617181920
  1. name: Rebuild Search Index
  2. on:
  3. schedule:
  4. - cron: '0 10 * * *' # Once per day at 10am UTC
  5. workflow_dispatch:
  6. permissions: read-all
  7. jobs:
  8. build:
  9. runs-on: ubuntu-latest
  10. if: github.repository_owner == 'spring-projects'
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v2
  14. with:
  15. ref: docs-build
  16. fetch-depth: 1
  17. - name: Dispatch
  18. run: gh workflow run --ref $(git rev-parse --abbrev-ref HEAD) rebuild-search-index.yml
  19. env:
  20. GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}