algolia-index.yml 557 B

12345678910111213141516171819
  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. permissions:
  7. contents: read
  8. jobs:
  9. update:
  10. name: Update Algolia Index
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: Checkout Source
  14. uses: actions/checkout@v2
  15. - name: Update Index
  16. 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"