-
Notifications
You must be signed in to change notification settings - Fork 21
32 lines (29 loc) · 1 KB
/
algolia_crawler.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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