File tree Expand file tree Collapse file tree 1 file changed +11
-14
lines changed
Expand file tree Collapse file tree 1 file changed +11
-14
lines changed Original file line number Diff line number Diff line change 11name : Algolia Crawler
22
3+ concurrency : algolia-crawl
4+
35on :
46 push :
57 branches : [ main ]
8+ workflow_dispatch :
69
710jobs :
8- algolia_crawl :
9- name : Algolia Recrawl
11+ trigger_crawl :
12+ name : Trigger Algolia Crawl
1013 runs-on : ubuntu-latest
1114 steps :
12- - name : Checkout Repo
13- uses : actions/checkout@v2
14-
15- - name : Algolia crawler creation and crawl
16- 17- id : algolia_crawler
18- with :
19- crawler-user-id : ${{ secrets.CRAWLER_USER_ID }}
20- crawler-api-key : ${{ secrets.CRAWLER_API_KEY }}
21- algolia-app-id : ${{ secrets.ALGOLIA_APP_ID }}
22- algolia-api-key : ${{ secrets.ALGOLIA_API_KEY }}
23- site-url : ' https://docs.replicated.com/'
15+ - name : Trigger Algolia Crawler
16+ run : |
17+ curl -X POST \
18+ 'https://crawler.algolia.com/api/1/crawlers/${{ secrets.CRAWLER_ID }}/reindex' \
19+ -H 'Content-Type: application/json' \
20+ --user '${{ secrets.CRAWLER_USER_ID }}:${{ secrets.CRAWLER_API_KEY }}'
You can’t perform that action at this time.
0 commit comments