algolia-index.yml 627 B

1234567891011121314151617181920
  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. if: ${{ github.repository == 'spring-projects/spring-security' }}
  13. steps:
  14. - name: Checkout Source
  15. uses: actions/checkout@v2
  16. - name: Update Index
  17. 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"