rebuild-search-index.yml 531 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. if: github.repository_owner == 'spring-projects'
  10. runs-on: ubuntu-latest
  11. steps:
  12. - name: Checkout
  13. uses: actions/checkout@v3
  14. with:
  15. ref: docs-build
  16. fetch-depth: 1
  17. - name: Dispatch
  18. env:
  19. GH_TOKEN: ${{ secrets.GH_ACTIONS_REPO_TOKEN }}
  20. run: gh workflow run rebuild-search-index.yml -r $(git rev-parse --abbrev-ref HEAD)