algolia-index.yml 526 B

12345678910111213141516
  1. name: Update Algolia Index
  2. on:
  3. schedule:
  4. - cron: '0 10 * * *' # Once per day at 10am UTC
  5. workflow_dispatch: # Manual trigger
  6. jobs:
  7. update:
  8. name: Update Algolia Index
  9. runs-on: ubuntu-latest
  10. steps:
  11. - name: Checkout Source
  12. uses: actions/checkout@v2
  13. - name: Update Index
  14. run: ${GITHUB_WORKSPACE}/.github/actions/algolia-docsearch-scraper.sh "${{ secrets.ALGOLIA_APPLICATION_ID }}" "${{ secrets.ALGOLIA_WRITE_API_KEY }}" "${GITHUB_WORKSPACE}/.github/actions/algolia-config.json"