Merge pull request #41 from resilient-tech/gstr-1 #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Algolia Crawler | |
on: | |
push: | |
branches: [ main ] | |
jobs: | |
algolia_recrawl: | |
name: Algolia Recrawl | |
runs-on: ubuntu-latest | |
steps: | |
# checkout this repo | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
# We don't know when the site will be deployed, we just wait a few seconds | |
# Better solutions can be found | |
- name: Sleep for 120s | |
run: sleep 120 | |
# For main branch | |
- name: MAIN => Algolia crawler creation and recrawl (Push on Main branch) | |
if: github.ref == 'refs/heads/main' | |
uses: algolia/algoliasearch-crawler-github-actions@v1 | |
id: crawler_push | |
with: | |
crawler-user-id: ${{ secrets.CRAWLER_USER_ID }} | |
crawler-api-key: ${{ secrets.CRAWLER_API_KEY }} | |
algolia-app-id: ${{ secrets.ALGOLIA_APP_ID }} | |
algolia-api-key: ${{ secrets.ALGOLIA_API_KEY }} | |
crawler-name: 'docs-india-compliance-app' | |
site-url: 'https://docs.indiacompliance.app/' | |
override-config: true |