Skip to content

Commit f5fa750

Browse files
authored
Create docsearch-scraper.yaml
1 parent 5d51034 commit f5fa750

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed
+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: DocSearch Scraper
2+
3+
# This workflow periodically updates the search index on Algolia
4+
5+
on:
6+
workflow_dispatch:
7+
8+
schedule:
9+
# * is a special character in YAML so we have to quote this string
10+
- cron: '41 7 * * *'
11+
12+
jobs:
13+
scraper:
14+
runs-on: ubuntu-latest
15+
container:
16+
image: algolia/docsearch-scraper:latest
17+
env:
18+
APPLICATION_ID: ${{ secrets.ALGOLIA_APPLICATION_ID }}
19+
API_KEY: ${{ secrets.ALGOLIA_API_KEY }}
20+
steps:
21+
- name: Check out the repo
22+
uses: actions/checkout@v2
23+
- name: Run scraper
24+
run: export CONFIG="$(cat algolia.json)"; (cd /root && pipenv install && pipenv run python -m src.index)

0 commit comments

Comments
 (0)